37
37
strategy :
38
38
fail-fast : false
39
39
matrix :
40
- platform : [ubuntu-20.04]
41
-
42
- runs-on : ${{ matrix.platform }}
40
+ os : [ubuntu-20.04]
41
+ runs-on : ${{ matrix.os }}
43
42
steps :
44
43
- uses : actions/checkout@v3
45
44
- uses : erlef/setup-beam@v1
@@ -52,21 +51,21 @@ jobs:
52
51
path : |
53
52
deps
54
53
_build
55
- key : ${{ runner .os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
54
+ key : ${{ matrix .os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
56
55
- name : Restore rust target
57
56
uses : actions/cache@v3
58
57
with :
59
58
path : |
60
59
src-tauri/target/release/deps
61
60
src-tauri/target/release/build
62
- key : ${{ runner .os }}-cargo-${{ hashFiles(format('{0}{1}', github.workspace, '/src-tauri/Cargo.lock')) }}
61
+ key : ${{ matrix .os }}-cargo-${{ hashFiles(format('{0}{1}', github.workspace, '/src-tauri/Cargo.lock')) }}
63
62
- run : mix setup
64
63
- run : mix assets.deploy
65
64
- run : mix release --force --overwrite
66
65
- name : install Rust stable
67
66
uses : dtolnay/rust-toolchain@stable
68
67
- name : install dependencies (ubuntu only)
69
- if : matrix.platform == 'ubuntu-20.04'
68
+ if : matrix.os == 'ubuntu-20.04'
70
69
run : |
71
70
sudo apt-get update
72
71
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
78
77
79
78
macos :
80
79
needs : create-release
81
- runs-on : macos-latest
80
+ strategy :
81
+ matrix :
82
+ os : [macos-13, macos-14]
83
+ runs-on : ${{ matrix.os }}
82
84
83
85
steps :
84
86
- uses : actions/checkout@v3
@@ -88,14 +90,14 @@ jobs:
88
90
path : |
89
91
deps
90
92
_build
91
- key : ${{ runner .os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
93
+ key : ${{ matrix .os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
92
94
- name : Restore rust target
93
95
uses : actions/cache@v3
94
96
with :
95
97
path : |
96
98
src-tauri/target/release/deps
97
99
src-tauri/target/release/build
98
- key : ${{ runner .os }}-cargo-${{ hashFiles(format('{0}{1}', github.workspace, '/src-tauri/Cargo.lock')) }}
100
+ key : ${{ matrix .os }}-cargo-${{ hashFiles(format('{0}{1}', github.workspace, '/src-tauri/Cargo.lock')) }}
99
101
- uses : asdf-vm/actions/install@v2
100
102
env :
101
103
KERL_CONFIGURE_OPTIONS : --disable-dynamic-ssl-lib
0 commit comments