mirror of
https://github.com/veryl-lang/veryl.git
synced 2025-08-04 18:48:00 +00:00
Add aarch64-linux build
This commit is contained in:
parent
a76b556993
commit
91fc82a65e
4 changed files with 29 additions and 2 deletions
11
.github/workflows/nightly.yml
vendored
11
.github/workflows/nightly.yml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
|||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||
os: [ubuntu-latest, ubuntu-24.04-arm, macOS-latest, windows-latest]
|
||||
rust: [stable]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
@ -31,6 +31,11 @@ jobs:
|
|||
run: |
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
sudo apt-get -qq install musl-tools
|
||||
- name: Setup MUSL for aarch64
|
||||
if: matrix.os == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
rustup target add aarch64-unknown-linux-musl
|
||||
sudo apt-get -qq install musl-tools
|
||||
- name: Setup aarch64 mac
|
||||
if: matrix.os == 'macOS-latest'
|
||||
run: |
|
||||
|
@ -40,6 +45,10 @@ jobs:
|
|||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
make release_lnx
|
||||
- name: Build for linux aarch64
|
||||
if: matrix.os == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
make release_lnx_aarch64
|
||||
- name: Build for macOS
|
||||
if: matrix.os == 'macOS-latest'
|
||||
run: make release_mac
|
||||
|
|
3
.github/workflows/regression.yml
vendored
3
.github/workflows/regression.yml
vendored
|
@ -14,6 +14,9 @@ jobs:
|
|||
- os: ubuntu-latest
|
||||
rust: stable
|
||||
target: x86_64-unknown-linux-gnu
|
||||
- os: ubuntu-24.04-arm
|
||||
rust: stable
|
||||
target: aarch64-unknown-linux-gnu
|
||||
- os: macOS-latest
|
||||
rust: stable
|
||||
target: x86_64-apple-darwin
|
||||
|
|
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
|||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest, windows-latest]
|
||||
os: [ubuntu-latest, ubuntu-24.04-arm, macOS-latest, windows-latest]
|
||||
rust: [stable]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
@ -28,6 +28,11 @@ jobs:
|
|||
run: |
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
sudo apt-get -qq install musl-tools
|
||||
- name: Setup MUSL for aarch64
|
||||
if: matrix.os == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
rustup target add aarch64-unknown-linux-musl
|
||||
sudo apt-get -qq install musl-tools
|
||||
- name: Setup aarch64 mac
|
||||
if: matrix.os == 'macOS-latest'
|
||||
run: |
|
||||
|
@ -37,6 +42,10 @@ jobs:
|
|||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
make release_lnx
|
||||
- name: Build for linux aarch64
|
||||
if: matrix.os == 'ubuntu-24.04-arm'
|
||||
run: |
|
||||
make release_lnx_aarch64
|
||||
- name: Build for macOS
|
||||
if: matrix.os == 'macOS-latest'
|
||||
run: make release_mac
|
||||
|
|
6
Makefile
6
Makefile
|
@ -29,6 +29,12 @@ release_lnx:
|
|||
zip -j ${ZIP_NAME}-x86_64-linux.zip $(addprefix target/x86_64-unknown-linux-musl/release/, ${BIN_NAMES}) \
|
||||
./support/sourcemap-resolver/target/x86_64-unknown-linux-musl/release/sourcemap-resolver
|
||||
|
||||
release_lnx_aarch64:
|
||||
cargo build --locked --release --target=aarch64-unknown-linux-musl $(addprefix --bin , ${BIN_NAMES})
|
||||
cargo build --locked --release --target=aarch64-unknown-linux-musl --manifest-path ./support/sourcemap-resolver/Cargo.toml
|
||||
zip -j ${ZIP_NAME}-aarch64-linux.zip $(addprefix target/aarch64-unknown-linux-musl/release/, ${BIN_NAMES}) \
|
||||
./support/sourcemap-resolver/target/aarch64-unknown-linux-musl/release/sourcemap-resolver
|
||||
|
||||
release_win:
|
||||
cargo build --locked --release --target=x86_64-pc-windows-msvc $(addprefix --bin , ${BIN_NAMES})
|
||||
cargo build --locked --release --target=x86_64-pc-windows-msvc --manifest-path ./support/sourcemap-resolver/Cargo.toml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue