ci: add aarch64 targets

This commit is contained in:
Théo Monnom
2023-01-12 23:44:48 +01:00
parent 986b97a413
commit 71d29bd64e
3 changed files with 63 additions and 46 deletions
+13 -13
View File
@@ -13,16 +13,16 @@ jobs:
publish:
runs-on: windows-latest
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
submodules: true
- name: Publish crates
run: |
cd livekit-utils && cargo publish
cd ../webrtc-sys && cargo publish
cd ../livekit-webrtc && cargo publish
cd ../livekit && cp ../README.md README.md && cargo publish --allow-dirty
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
submodules: true
- name: Publish crates
run: |
cd livekit-utils && cargo publish
cd ../webrtc-sys && cargo publish
cd ../livekit-webrtc && cargo publish
cd ../livekit && cp ../README.md README.md && cargo publish --allow-dirty
-33
View File
@@ -1,33 +0,0 @@
name: Tests & Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
submodules: true
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
+50
View File
@@ -0,0 +1,50 @@
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: windows-latest
target: aarch64-pc-windows-msvc
- os: macos-latest
target: x86_64-apple-darwin
code-target: darwin-x64
- os: macos-latest
target: aarch64-apple-darwin
name: Run tests (${{ matrix.target }})
runs-on: ${{ matrix.os }}
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust toolchain
run: |
rustup update --no-self-update stable
rustup target add ${{ matrix.target }}
- uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: cargo build --release --verbose --target ${{ matrix.target }}
- name: Tests
run: cargo test --release --verbose --target ${{ matrix.target }}