@@ -3,7 +3,7 @@ name: Build and release NIFs
33on :
44 push :
55 tags :
6- - ' v* '
6+ - " v* "
77 workflow_dispatch :
88
99jobs :
@@ -15,16 +15,36 @@ jobs:
1515 matrix :
1616 nif : ["2.15"]
1717 job :
18- - { target: arm-unknown-linux-gnueabihf , os: ubuntu-22.04 , use-cross: true }
19- - { target: aarch64-unknown-linux-gnu , os: ubuntu-22.04 , use-cross: true }
20- - { target: aarch64-unknown-linux-musl , os: ubuntu-22.04 , use-cross: true }
21- - { target: aarch64-apple-darwin , os: macos-13 }
22- - { target: riscv64gc-unknown-linux-gnu , os: ubuntu-22.04 , use-cross: true }
23- - { target: x86_64-apple-darwin , os: macos-13 }
24- - { target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 }
25- - { target: x86_64-unknown-linux-musl , os: ubuntu-22.04 , use-cross: true }
26- - { target: x86_64-pc-windows-gnu , os: windows-2019 }
27- - { target: x86_64-pc-windows-msvc , os: windows-2019 }
18+ - {
19+ target : arm-unknown-linux-gnueabihf,
20+ os : ubuntu-22.04,
21+ use-cross : true,
22+ }
23+ - {
24+ target : aarch64-unknown-linux-gnu,
25+ os : ubuntu-22.04,
26+ use-cross : true,
27+ }
28+ - {
29+ target : aarch64-unknown-linux-musl,
30+ os : ubuntu-22.04,
31+ use-cross : true,
32+ }
33+ - { target: aarch64-apple-darwin, os: macos-13 }
34+ - {
35+ target : riscv64gc-unknown-linux-gnu,
36+ os : ubuntu-22.04,
37+ use-cross : true,
38+ }
39+ - { target: x86_64-apple-darwin, os: macos-13 }
40+ - { target: x86_64-unknown-linux-gnu, os: ubuntu-22.04 }
41+ - {
42+ target : x86_64-unknown-linux-musl,
43+ os : ubuntu-22.04,
44+ use-cross : true,
45+ }
46+ - { target: x86_64-pc-windows-gnu, os: windows-2019 }
47+ - { target: x86_64-pc-windows-msvc, os: windows-2019 }
2848
2949 permissions :
3050 contents : write
@@ -38,11 +58,13 @@ jobs:
3858 run : |
3959 # Get the project version from mix.exs
4060 echo "PROJECT_VERSION=$(sed -n 's/^ @version "\(.*\)"/\1/p' mix.exs | head -n1)" >> $GITHUB_ENV
41- - name : Install rust toolchain
42- uses : dtolnay/rust-toolchain@stable
61+ - uses : jdx/mise-action@v2
4362 with :
44- toolchain : stable
45- target : ${{ matrix.job.target }}
63+ mise_toml : |
64+ [tools]
65+ rust = { targets = "${{ matrix.job.target }}" }
66+ [settings]
67+ disable_tools = ["elixir", "erlang"]
4668 - name : Build the project
4769 id : build-crate
4870 uses : philss/rustler-precompiled-action@v1.1.4
0 commit comments