From a4b40e60cbf9b0eacf238622e2f28c1cf57cb6ed Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 Oct 2021 13:05:40 +0300 Subject: [PATCH 1/2] feat: upgrade ubuntu builders 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. --- .github/workflows/release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e8b7ba4298b..eee66c25ff5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -85,7 +85,7 @@ jobs: dist-x86_64-unknown-linux-gnu: name: dist (x86_64-unknown-linux-gnu) - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: RA_TARGET: x86_64-unknown-linux-gnu @@ -125,7 +125,7 @@ jobs: dist-x86_64-unknown-linux-musl: name: dist (x86_64-unknown-linux-musl) - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: RA_TARGET: x86_64-unknown-linux-musl # For some reason `-crt-static` is not working for clang without lld @@ -155,7 +155,7 @@ jobs: dist-aarch64-unknown-linux-gnu: name: dist (aarch64-unknown-linux-gnu) - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 env: RA_TARGET: aarch64-unknown-linux-gnu CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc @@ -256,7 +256,7 @@ jobs: publish: name: publish - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest 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'] steps: - name: Install Nodejs From 045be6545f5fcd86dba506b168cf8e00446d54f5 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 31 Oct 2021 13:07:30 +0300 Subject: [PATCH 2/2] minor: group -gnu builders together --- .github/workflows/release.yaml | 60 +++++++++++++++++----------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index eee66c25ff5..f0ff7d71fc7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -123,36 +123,6 @@ jobs: name: dist-x86_64-unknown-linux-gnu path: ./dist - dist-x86_64-unknown-linux-musl: - name: dist (x86_64-unknown-linux-musl) - runs-on: ubuntu-latest - env: - RA_TARGET: x86_64-unknown-linux-musl - # For some reason `-crt-static` is not working for clang without lld - RUSTFLAGS: "-C link-arg=-fuse-ld=lld -C target-feature=-crt-static" - container: - image: rust:alpine - volumes: - - /usr/local/cargo/registry - - steps: - - name: Install dependencies - run: apk add --no-cache git clang lld musl-dev - - - name: Checkout repository - uses: actions/checkout@v2 - with: - fetch-depth: ${{ env.FETCH_DEPTH }} - - - name: Dist - run: cargo xtask dist - - - name: Upload artifacts - uses: actions/upload-artifact@v1 - with: - name: dist-x86_64-unknown-linux-musl - path: ./dist - dist-aarch64-unknown-linux-gnu: name: dist (aarch64-unknown-linux-gnu) runs-on: ubuntu-20.04 @@ -189,6 +159,36 @@ jobs: name: dist-aarch64-unknown-linux-gnu path: ./dist + dist-x86_64-unknown-linux-musl: + name: dist (x86_64-unknown-linux-musl) + runs-on: ubuntu-latest + env: + RA_TARGET: x86_64-unknown-linux-musl + # For some reason `-crt-static` is not working for clang without lld + RUSTFLAGS: "-C link-arg=-fuse-ld=lld -C target-feature=-crt-static" + container: + image: rust:alpine + volumes: + - /usr/local/cargo/registry + + steps: + - name: Install dependencies + run: apk add --no-cache git clang lld musl-dev + + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: ${{ env.FETCH_DEPTH }} + + - name: Dist + run: cargo xtask dist + + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: dist-x86_64-unknown-linux-musl + path: ./dist + dist-x86_64-apple-darwin: name: dist (x86_64-apple-darwin) runs-on: macos-latest