Repository navigation
81 lines (70 loc) · 2.42 KB
/
Copy pathrelease.yml
File metadata and controls
81 lines (70 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# On new app releases
# Generate a windows installer, and a flatpak bundle
name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
types:
- ready_for_review
workflow_dispatch:
inputs:
release:
type: boolean
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.release }}
cancel-in-progress: true
jobs:
msys2:
name: "Prepare Windows Installer"
strategy:
matrix:
variant:
- arch: x86_64
runner: windows-latest
sys: mingw64
package: x86_64
fail-fast: true
runs-on: ${{ matrix.variant.runner }}
# if: ${{ false }}
defaults:
run:
shell: msys2 {0}
steps:
- name: 'Checkout latest sources'
uses: actions/checkout@v3
with:
lfs: 'true'
- name: 'Prepare MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.variant.sys }}
update: true
install: |
git make zip unzip
mingw-w64-${{ matrix.variant.package }}-meson mingw-w64-${{ matrix.variant.package }}-gcc mingw-w64-${{ matrix.variant.package }}-vala mingw-w64-${{ matrix.variant.package }}-desktop-file-utils
mingw-w64-${{ matrix.variant.package }}-gsettings-desktop-schemas mingw-w64-${{ matrix.variant.package }}-granite7 mingw-w64-${{ matrix.variant.package }}-gtk-elementary-theme mingw-w64-${{ matrix.variant.package }}-elementary-icon-theme mingw-w64-${{ matrix.variant.package }}-libgee mingw-w64-${{ matrix.variant.package }}-json-glib
mingw-w64-${{ matrix.variant.package }}-nsis mingw-w64-${{ matrix.variant.package }}-adwaita-icon-theme
- name: 'Setup build directory'
run: |
meson setup builddir -Dprofile='windows' --buildtype=release
meson compile -C builddir
- name: 'Setup for deployment'
run: builddir/windows/deploy.sh builddir
- name: 'Upload portable windows install'
uses: actions/upload-artifact@v4
with:
name: windows_portable
path: deploy/
- name: 'Create windows installer'
run: |
cp builddir/windows/installer.nsi .
makensis installer.nsi
- name: 'Upload artifacts'
uses: actions/upload-artifact@v4
with:
name: Jorts-Installer.exe
path: Jorts-Installer.exe