File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Rust
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags :
8+ - " *"
9+ pull_request :
10+ branches :
11+ - main
12+
13+ jobs :
14+ build :
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ include :
19+ - { os: ubuntu-20.04, target: x86_64-unknown-linux-gnu, platform: linux-x64 }
20+ - { os: ubuntu-20.04, target: aarch64-unknown-linux-gnu, platform: linux-arm64 }
21+ - { os: ubuntu-20.04, target: x86_64-unknown-linux-musl, platform: linux-musl }
22+ - { os: ubuntu-20.04, target: x86_64-unknown-freebsd, platform: linux-bsd }
23+ - { os: macos-latest, target: x86_64-apple-darwin, platform: darwin-x64 }
24+ - { os: macos-latest, target: aarch64-apple-darwin, platform: darwin-arm64 }
25+ - { os: windows-latest, target: x86_64-pc-windows-msvc, platform: win32-x64 }
26+ - { os: windows-latest, target: i686-pc-windows-msvc, platform: win32-ia32 }
27+ runs-on : ${{ matrix.os }}
28+ steps :
29+ - name : Install aarch64-linux-gnu
30+ if : ${{ matrix.platform == 'linux-arm64'}}
31+ run : |
32+ sudo apt-get update
33+ sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
34+
35+ - uses : actions/checkout@v4
36+ with :
37+ submodules : recursive
38+ - name : Install Rust toolchain
39+ uses : dtolnay/rust-toolchain@stable
40+ - name : Build
41+ run : |
42+ cargo build --release --target ${{ matrix.target }} --target-dir target/${{ matrix.platform }}
43+
44+
You can’t perform that action at this time.
0 commit comments