Skip to content

Commit 04f03a3

Browse files
bors[bot]matklad
andauthored
Merge #10672
10672: feat: upgrade ubuntu builders r=matklad a=matklad For `-gnu` triples, use 20.04, the current LTS. This upgrades the required version of glibc. For musl, just use `latest` as, presumably, we don't care about glibc version in that case. Hopefully, this unbreaks nightly publishing! bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents eb32b60 + 045be65 commit 04f03a3

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/release.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585

8686
dist-x86_64-unknown-linux-gnu:
8787
name: dist (x86_64-unknown-linux-gnu)
88-
runs-on: ubuntu-18.04
88+
runs-on: ubuntu-20.04
8989
env:
9090
RA_TARGET: x86_64-unknown-linux-gnu
9191

@@ -123,39 +123,9 @@ jobs:
123123
name: dist-x86_64-unknown-linux-gnu
124124
path: ./dist
125125

126-
dist-x86_64-unknown-linux-musl:
127-
name: dist (x86_64-unknown-linux-musl)
128-
runs-on: ubuntu-20.04
129-
env:
130-
RA_TARGET: x86_64-unknown-linux-musl
131-
# For some reason `-crt-static` is not working for clang without lld
132-
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -C target-feature=-crt-static"
133-
container:
134-
image: rust:alpine
135-
volumes:
136-
- /usr/local/cargo/registry
137-
138-
steps:
139-
- name: Install dependencies
140-
run: apk add --no-cache git clang lld musl-dev
141-
142-
- name: Checkout repository
143-
uses: actions/checkout@v2
144-
with:
145-
fetch-depth: ${{ env.FETCH_DEPTH }}
146-
147-
- name: Dist
148-
run: cargo xtask dist
149-
150-
- name: Upload artifacts
151-
uses: actions/upload-artifact@v1
152-
with:
153-
name: dist-x86_64-unknown-linux-musl
154-
path: ./dist
155-
156126
dist-aarch64-unknown-linux-gnu:
157127
name: dist (aarch64-unknown-linux-gnu)
158-
runs-on: ubuntu-18.04
128+
runs-on: ubuntu-20.04
159129
env:
160130
RA_TARGET: aarch64-unknown-linux-gnu
161131
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
@@ -189,6 +159,36 @@ jobs:
189159
name: dist-aarch64-unknown-linux-gnu
190160
path: ./dist
191161

162+
dist-x86_64-unknown-linux-musl:
163+
name: dist (x86_64-unknown-linux-musl)
164+
runs-on: ubuntu-latest
165+
env:
166+
RA_TARGET: x86_64-unknown-linux-musl
167+
# For some reason `-crt-static` is not working for clang without lld
168+
RUSTFLAGS: "-C link-arg=-fuse-ld=lld -C target-feature=-crt-static"
169+
container:
170+
image: rust:alpine
171+
volumes:
172+
- /usr/local/cargo/registry
173+
174+
steps:
175+
- name: Install dependencies
176+
run: apk add --no-cache git clang lld musl-dev
177+
178+
- name: Checkout repository
179+
uses: actions/checkout@v2
180+
with:
181+
fetch-depth: ${{ env.FETCH_DEPTH }}
182+
183+
- name: Dist
184+
run: cargo xtask dist
185+
186+
- name: Upload artifacts
187+
uses: actions/upload-artifact@v1
188+
with:
189+
name: dist-x86_64-unknown-linux-musl
190+
path: ./dist
191+
192192
dist-x86_64-apple-darwin:
193193
name: dist (x86_64-apple-darwin)
194194
runs-on: macos-latest
@@ -256,7 +256,7 @@ jobs:
256256

257257
publish:
258258
name: publish
259-
runs-on: ubuntu-18.04
259+
runs-on: ubuntu-latest
260260
needs: ['dist-x86_64-pc-windows-msvc', 'dist-aarch64-pc-windows-msvc', 'dist-x86_64-unknown-linux-gnu', 'dist-x86_64-unknown-linux-musl', 'dist-aarch64-unknown-linux-gnu', 'dist-x86_64-apple-darwin', 'dist-aarch64-apple-darwin']
261261
steps:
262262
- name: Install Nodejs

0 commit comments

Comments
 (0)