@@ -145,12 +145,6 @@ jobs:
145145 - os : ubuntu-latest
146146 target : x86_64-unknown-linux-gnu
147147 suffix : " "
148- - os : ubuntu-latest
149- target : x86_64-unknown-linux-musl
150- suffix : " "
151- # - os: windows-latest
152- # target: x86_64-pc-windows-msvc
153- # suffix: ".exe"
154148 - os : macos-latest
155149 target : x86_64-apple-darwin
156150 suffix : " "
@@ -173,10 +167,6 @@ jobs:
173167 with :
174168 targets : ${{ matrix.target }}
175169
176- - name : Install musl tools
177- if : matrix.target == 'x86_64-unknown-linux-musl'
178- run : sudo apt-get update && sudo apt-get install -y musl-tools
179-
180170 - name : Cache dependencies
181171 uses : Swatinem/rust-cache@v2
182172 with :
@@ -185,20 +175,15 @@ jobs:
185175 - name : Build for ${{ matrix.target }}
186176 run : cargo build --release --target ${{ matrix.target }}
187177
188- - name : Rename Windows binary
189- if : contains(matrix.target, 'windows')
190- run : mv target/${{ matrix.target }}/release/repos.exe repos-${{ matrix.target }}.exe
191-
192- - name : Rename Unix binary
193- if : " !contains(matrix.target, 'windows')"
178+ - name : Rename binary
194179 run : mv target/${{ matrix.target }}/release/repos repos-${{ matrix.target }}
195180
196181 - name : Strip binary (macOS)
197- if : " !contains(matrix.target, 'windows') && runner.os == 'macOS'"
182+ if : runner.os == 'macOS'
198183 run : strip -x repos-${{ matrix.target }}
199184
200185 - name : Strip binary (Linux)
201- if : " !contains(matrix.target, 'windows') && runner.os == 'Linux'"
186+ if : runner.os == 'Linux'
202187 run : strip repos-${{ matrix.target }}
203188
204189 - name : Create archive
@@ -315,6 +300,12 @@ jobs:
315300 steps :
316301 - name : Checkout code
317302 uses : actions/checkout@v4
303+ with :
304+ ref : main
305+ fetch-depth : 1
306+
307+ - name : Pull latest changes
308+ run : git pull origin main
318309
319310 - name : Set up Docker Buildx
320311 uses : docker/setup-buildx-action@v3
0 commit comments