66' on ' :
77 push :
88 branches :
9- - main
9+ - ' ** '
1010 tags-ignore :
1111 - ' **'
1212 paths-ignore :
2121 name : Udeps
2222 runs-on : ubuntu-latest
2323 steps :
24- - uses : actions/checkout@v2
24+ - uses : actions/checkout@v4
2525 -
uses :
jrobsonchase/[email protected] 2626 - uses : ./.github/workflows/rust-cache
2727 - uses : actions-rs/cargo@v1
3232 name : Rustfmt
3333 runs-on : ubuntu-latest
3434 steps :
35- - uses : actions/checkout@v2
35+ - uses : actions/checkout@v4
3636 -
uses :
jrobsonchase/[email protected] 3737 - uses : actions-rs/cargo@v1
3838 with :
4242 name : Clippy
4343 runs-on : ubuntu-latest
4444 steps :
45- - uses : actions/checkout@v2
45+ - uses : actions/checkout@v4
4646 -
uses :
jrobsonchase/[email protected] 4747 - uses : ./.github/workflows/rust-cache
4848 - uses : actions-rs/cargo@v1
5353 name : Test
5454 runs-on : ubuntu-latest
5555 steps :
56- - uses : actions/checkout@v2
56+ - uses : actions/checkout@v4
5757 -
uses :
jrobsonchase/[email protected] 5858 - uses : ./.github/workflows/rust-cache
5959 - name : Run Tests
6464 name : Decide on Publishing
6565 runs-on : ubuntu-latest
6666 steps :
67- - uses : actions/checkout@v3
67+ - uses : actions/checkout@v4
6868 - name : Decide
6969 id : decide
7070 run : |
9494 with :
9595 docker : ${{ matrix.settings.docker }}
9696 host : ${{ matrix.settings.host }}
97- if : ${{ matrix.settings.if }}
97+ if : ${{ matrix.settings.if || 'true' }}
9898 publish : ${{ needs.decide.outputs.publish || 'false' }}
9999 setup : ${{ matrix.settings.setup }}
100100 target : ${{ matrix.settings.target }}
@@ -104,54 +104,38 @@ jobs:
104104 settings :
105105 - host : macos-latest
106106 target : x86_64-apple-darwin
107- if : ${{ github.ref == 'refs/heads/main' }}
108107 - host : windows-latest
109108 target : x86_64-pc-windows-msvc
110- if : true
111109 - host : windows-latest
112- if : ${{ github.ref == 'refs/heads/main' }}
113110 target : i686-pc-windows-msvc
114111 - host : ubuntu-latest
115- if : true
116112 target : x86_64-unknown-linux-gnu
117113 - host : ubuntu-latest
118- if : true
119114 target : x86_64-unknown-linux-musl
120115 docker : ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
121116 - host : macos-latest
122- if : true
123117 target : aarch64-apple-darwin
124118 - host : macos-latest
125- if : ${{ github.ref == 'refs/heads/main' }}
126119 target : universal2-apple-darwin
127120 - host : ubuntu-latest
128- if : true
129121 target : aarch64-unknown-linux-gnu
130122 docker : ghcr.io/rust-cross/manylinux2014-cross:aarch64
131123 - host : ubuntu-latest
132- if : ${{ github.ref == 'refs/heads/main' }}
133124 target : armv7-unknown-linux-gnueabihf
134125 setup : |
135126 sudo apt-get update
136127 sudo apt-get install gcc-arm-linux-gnueabihf -y
137128 - host : ubuntu-latest
138- # need to build python against the android ndk
139- if : false
140129 target : aarch64-linux-android
141130 - host : ubuntu-latest
131+ target : armv7-linux-androideabi
142132 # need to build python against the android ndk
143133 if : false
144- target : armv7-linux-androideabi
145134 - host : ubuntu-latest
146- if : ${{ github.ref == 'refs/heads/main' }}
147135 target : aarch64-unknown-linux-musl
148136 - host : windows-latest
149137 target : aarch64-pc-windows-msvc
150- # target not supported by the 'ring' rust dependency (ssl library partially built by gcc)
151- # https://github.com/briansmith/ring/issues/1167
152- if : false
153138 build-freebsd :
154- if : github.ref == 'refs/heads/main'
155139 needs : decide
156140 runs-on : ubuntu-22.04
157141 name : Build FreeBSD
@@ -160,7 +144,7 @@ jobs:
160144 steps :
161145 - name : Run lscpu
162146 run : lscpu
163- - uses : actions/checkout@v3
147+ - uses : actions/checkout@v4
164148 - name : Build
165149 id : build
166150 uses : vmactions/freebsd-vm@v1
@@ -175,7 +159,7 @@ jobs:
175159 usesh : true
176160 mem : 3000
177161 prepare : |
178- pkg install -y -f curl libnghttp2 python3 yarn
162+ pkg install -y -f curl libnghttp2 python3 yarn cmake llvm
179163 alias curl="curl --retry 5 --retry-all-errors"
180164 curl https://sh.rustup.rs -sSf --output rustup.sh
181165 sh rustup.sh -y --profile minimal --default-toolchain beta
@@ -207,7 +191,7 @@ jobs:
207191 # make the rsync back faster
208192 rm -rf .env/ target/debug/ target/release/
209193 - name : Upload artifact
210- uses : actions/upload-artifact@v3
194+ uses : actions/upload-artifact@v4
211195 with :
212196 name : bindings-freebsd
213197 path : target/wheels/*.whl
@@ -220,7 +204,7 @@ jobs:
220204 runs-on : ubuntu-latest
221205 name : Tag Release
222206 steps :
223- - uses : actions/checkout@v2
207+ - uses : actions/checkout@v4
224208 -
uses :
jrobsonchase/[email protected] 225209 - name : Tag
226210 run : |
0 commit comments