Skip to content

Commit 9f19a5b

Browse files
authored
chore: Use Buildjet for ubuntu binary builds (#1097)
1 parent 2395e36 commit 9f19a5b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,18 @@ jobs:
145145
fail-fast: true
146146
matrix:
147147
include:
148-
- os: ubuntu-18.04
148+
- runsOn: buildjet-2vcpu-ubuntu-1804
149149
target: x86_64-unknown-linux-gnu
150-
- os: ubuntu-18.04
150+
- runsOn: buildjet-2vcpu-ubuntu-1804
151151
target: aarch64-unknown-linux-gnu
152152
rustflags: '-C linker=aarch64-linux-gnu-gcc'
153-
- os: macos-latest
153+
- runsOn: macos-latest
154154
target: x86_64-apple-darwin
155-
- os: macos-latest
155+
- runsOn: macos-latest
156156
target: aarch64-apple-darwin
157-
- os: windows-latest
157+
- runsOn: windows-latest
158158
target: x86_64-pc-windows-msvc
159-
runs-on: ${{ matrix.os }}
159+
runs-on: ${{ matrix.runsOn }}
160160
steps:
161161
- uses: actions/checkout@v2
162162
with:
@@ -176,7 +176,7 @@ jobs:
176176
run: rustup target add ${{ matrix.target }}
177177
- name: Print libc version
178178
run: ldd --version
179-
if: ${{ matrix.os == 'ubuntu-18.04' }}
179+
if: ${{ contains(matrix.runsOn, 'ubuntu') }}
180180
- name: Install gcc-aarch64-linux-gnu
181181
run: sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu
182182
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
@@ -194,7 +194,7 @@ jobs:
194194
# Restore the CLI JS only on Windows because Windows build changes the
195195
# file attributes causing publish to think the change is uncommitted
196196
- run: git restore packages/create-project/cli.js
197-
if: ${{ matrix.os == 'windows-latest' }}
197+
if: ${{ matrix.runsOn == 'windows-latest' }}
198198
- run: node scripts/publish-to-verdaccio.js --registry-dir /tmp/registry
199199
- uses: actions/upload-artifact@v2
200200
with:

0 commit comments

Comments
 (0)