Skip to content

Commit

Permalink
Update mac-cross.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zedifen committed Aug 13, 2023
1 parent e6d3d91 commit cebd593
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/mac-cross.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Test MacOS Cross-Build aarch64

on:
push:
Expand Down Expand Up @@ -32,12 +32,12 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install Rust toolchain
run: |
rustup default stable
rustup toolchain install stable
rustup target add aarch64-apple-darwin
- uses: Swatinem/rust-cache@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand All @@ -47,8 +47,8 @@ jobs:
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) \
MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version) \
cargo build --release --target=aarch64-apple-darwin
- name: Run tests
run: |
SDKROOT=$(xcrun -sdk macosx --show-sdk-path) \
MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version) \
cargo test --release --target=aarch64-apple-darwin
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: v2ray-rust-${{ github.sha }}-aarch64-apple-darwin
path: target/aarch64-apple-darwin/release/v2ray-rust

0 comments on commit cebd593

Please sign in to comment.