12
12
runs-on : ${{ matrix.os }}
13
13
strategy :
14
14
matrix :
15
- os : [ubuntu-20.04, windows-latest, macos-latest]
15
+ include :
16
+ - os : ubuntu-20.04
17
+ - os : windows-latest
18
+ - os : macos-latest
19
+ arch : amd64
20
+ - os : macos-latest
21
+ arch : arm64
16
22
17
23
steps :
18
24
- uses : actions/checkout@v4
23
29
24
30
- name : Install dependencies on Linux
25
31
if : matrix.os == 'ubuntu-20.04'
26
- run : sudo apt-get install -y sqlite3 gcc unzip gcc-aarch64-linux-gnu
32
+ run : sudo apt-get install -y sqlite3 gcc unzip
27
33
28
34
- name : Install dependencies on Windows
29
35
if : matrix.os == 'windows-latest'
@@ -48,37 +54,26 @@ jobs:
48
54
- name : Build for Linux
49
55
if : matrix.os == 'ubuntu-20.04'
50
56
run : |
51
- make compile-linux-x86
52
- make compile-linux-arm64
57
+ make compile-linux
53
58
make pack-linux version=${{ env.VERSION }}
54
59
55
- - name : Install MSYS2 and 'mingw-w64-i686-toolchain'
56
- if : matrix.os == 'windows-latest'
57
- uses : msys2/setup-msys2@v2
58
- with :
59
- update : true
60
- install : mingw-w64-i686-toolchain
61
- msystem : MINGW32
62
-
63
60
- name : Build for Windows
64
61
if : matrix.os == 'windows-latest'
65
- shell : msys2 {0}
62
+ shell : pwsh
66
63
run : |
67
- make compile-windows-x86
68
64
make compile-windows
69
65
make pack-windows version=${{ env.VERSION }}
70
66
71
67
- name : Build for macOS
72
68
if : matrix.os == 'macos-latest'
73
69
run : |
74
- make compile-macos-x86
75
- make compile-macos-arm64
76
- make pack-macos version=${{ env.VERSION }}
70
+ make compile-macos-universal
71
+ make pack-macos-universal version=${{ env.VERSION }}
77
72
78
73
- name : Upload binaries to release
79
- uses : svenstaro/upload-release-action@v2
74
+ uses : svenstaro/upload-release-action@2.9.0
80
75
with :
81
76
repo_token : ${{ secrets.GITHUB_TOKEN }}
82
77
file : dist/*.zip
83
78
file_glob : true
84
- tag : ${{ github.ref_name }}
79
+ tag : ${{ github.ref_name }}
0 commit comments