File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 39
39
strategy :
40
40
fail-fast : false
41
41
matrix :
42
- platform : [macos-latest, ubuntu-20.04, windows-latest]
42
+ config :
43
+ - os : ubuntu-latest
44
+ arch : x86_64
45
+ rust_target : x86_64-unknown-linux-gnu
46
+ - os : macos-latest
47
+ arch : x86_64
48
+ rust_target : x86_64-apple-darwin
49
+ - os : macos-latest
50
+ arch : aarch64
51
+ rust_target : aarch64-apple-darwin
52
+ - os : windows-latest
53
+ arch : x86_64
54
+ rust_target : x86_64-pc-windows-msvc
43
55
44
- runs-on : ${{ matrix.platform }}
56
+ runs-on : ${{ matrix.config.os }}
45
57
steps :
46
58
- uses : actions/checkout@v3
47
59
- name : setup node
50
62
node-version : 16
51
63
- name : install Rust stable
52
64
uses : dtolnay/rust-toolchain@stable
65
+ with :
66
+ targets : ${{ matrix.config.rust_target }}
67
+ - uses : Swatinem/rust-cache@v2
68
+ with :
69
+ key : ${{ matrix.config.rust_target }}
53
70
- name : install dependencies (ubuntu only)
54
- if : matrix.platform == 'ubuntu-20.04'
71
+ if : matrix.config.os == 'ubuntu-20.04'
55
72
run : |
56
73
sudo apt-get update
57
74
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
You can’t perform that action at this time.
0 commit comments