Skip to content

Commit e44d14f

Browse files
committed
アーキテクチャを追加
1 parent 88624aa commit e44d14f

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

.github/workflows/deploy.yaml

+29-7
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- target: x86_64-pc-windows-gnu
15+
- target: x86_64-pc-windows-msvc
1616
os: windows
1717
- target: x86_64-unknown-linux-musl
1818
os: linux
19+
- target: x86_64-apple-darwin
20+
os: macos
21+
- target: aarch64-apple-darwin
22+
os: macos
23+
- target: aarch64-linux-android
24+
os: android
25+
- target: aarch64-unknown-linux-gnu
26+
os: raspi
1927
steps:
2028
- uses: actions/checkout@v4
2129
- name: Setup Rust
@@ -26,15 +34,29 @@ jobs:
2634
- name: Install Windows toolchain
2735
if: matrix.os == 'windows'
2836
run: |
29-
sudo apt-get update
30-
sudo apt-get install -y g++-mingw-w64-x86-64-win32
31-
rustup target add x86_64-pc-windows-gnu
32-
- name: Install Linux musl toolchain
37+
rustup target add x86_64-pc-windows-msvc
38+
- name: Install MacOS toolchain
39+
if: matrix.os == 'macos'
40+
run: |
41+
rustup target add x86_64-apple-darwin aarch64-apple-darwin
42+
- name: Install Linux toolchain
3343
if: matrix.os == 'linux'
3444
run: |
35-
sudo apt-get update
36-
sudo apt-get install -y musl-tools
45+
sudo apt update
46+
sudo apt install -y musl-tools
3747
rustup target add x86_64-unknown-linux-musl
48+
- name: Install Android toolchain
49+
if: matrix.os == 'android'
50+
run: |
51+
sudo apt update
52+
sudo apt install -y android-ndk
53+
rustup target add aarch64-linux-android
54+
- name: Install Raspi toolchain
55+
if: matrix.os == 'raspi'
56+
run: |
57+
sudo apt update
58+
sudo apt install -y gcc-aarch64-linux-gnu
59+
rustup target add aarch64-unknown-linux-gnu
3860
- name: Build
3961
run: cargo build --release --target ${{ matrix.target }}
4062
- name: Upload artifact

0 commit comments

Comments
 (0)