Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kvs96 committed Jul 8, 2024
1 parent 14c7f58 commit 1cd99eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
docker: amazonlinux:2
docker: amazonlinux:2023
file_ext: tar.xz

- target: aarch64-unknown-linux-musl
Expand All @@ -62,7 +62,7 @@ jobs:
run: echo "ARTIFACT_NAME=gear-${{ github.event.inputs.release_version || 'nightly' }}-${{ matrix.target }}.${{ matrix.file_ext }}" >> $GITHUB_ENV

- name: Configure Amazon Linux
if: matrix.docker == 'amazonlinux:2'
if: matrix.docker == 'amazonlinux:2023'
run: |
yum update -y && yum install -y clang gcc git gzip make tar unzip wget xz
wget https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.sh
Expand Down Expand Up @@ -91,6 +91,10 @@ jobs:
if: matrix.os == 'ubuntu-latest'
uses: dtolnay/rust-toolchain@stable

- name: Add macOS x86 target
if: matrix.target == 'x86_64-apple-darwin'
run: sed -i '' 's/"wasm32-unknown-unknown"/"x86_64-apple-darwin", "wasm32-unknown-unknown"/g' rust-toolchain.toml

- name: Add macOS ARM target
if: matrix.target == 'aarch64-apple-darwin'
run: sed -i '' 's/"wasm32-unknown-unknown"/"aarch64-apple-darwin", "wasm32-unknown-unknown"/g' rust-toolchain.toml
Expand Down

0 comments on commit 1cd99eb

Please sign in to comment.