Skip to content

Commit d8090de

Browse files
committed
Update CI rules
1 parent 41e9c03 commit d8090de

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

.github/workflows/main.yml

+22-10
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ jobs:
1010
target:
1111
- x86_64-unknown-linux-gnu
1212
- i686-unknown-linux-gnu
13-
- x86_64-pc-windows-gnu
13+
- aarch64-unknown-linux-gnu
1414
- arm-unknown-linux-gnueabi
1515
- x86_64-apple-darwin
16+
- aarch64-apple-darwin
17+
- x86_64-pc-windows-gnu
1618
- x86_64-pc-windows-msvc
1719
- wasm32-unknown-emscripten
1820
lua: [lua54, lua53, lua52, lua51]
@@ -21,18 +23,22 @@ jobs:
2123
os: ubuntu-latest
2224
- target: i686-unknown-linux-gnu
2325
os: ubuntu-latest
24-
- target: x86_64-pc-windows-gnu
26+
- target: aarch64-unknown-linux-gnu
2527
os: ubuntu-latest
2628
- target: arm-unknown-linux-gnueabi
2729
os: ubuntu-latest
2830
- target: x86_64-apple-darwin
2931
os: macos-latest
32+
- target: aarch64-apple-darwin
33+
os: macos-latest
34+
- target: x86_64-pc-windows-gnu
35+
os: ubuntu-latest
3036
- target: x86_64-pc-windows-msvc
3137
os: windows-latest
3238
- target: wasm32-unknown-emscripten
3339
os: ubuntu-latest
3440
steps:
35-
- uses: actions/checkout@v3
41+
- uses: actions/checkout@main
3642
- uses: dtolnay/rust-toolchain@stable
3743
with:
3844
target: ${{ matrix.target }}
@@ -42,18 +48,24 @@ jobs:
4248
sudo apt-get update -y
4349
sudo apt-get install -y --no-install-recommends gcc-multilib
4450
shell: bash
45-
- name: Install GCC (x86_64-pc-windows-gnu)
46-
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
51+
- name: Install GCC (aarch64-unknown-linux-gnu)
52+
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
4753
run: |
4854
sudo apt-get update -y
49-
sudo apt-get install -y --no-install-recommends gcc-mingw-w64-x86-64
55+
sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu libc6-dev-arm64-cross
5056
shell: bash
5157
- name: Install GCC (arm-unknown-linux-gnueabi)
5258
if: ${{ matrix.target == 'arm-unknown-linux-gnueabi' }}
5359
run: |
5460
sudo apt-get update -y
5561
sudo apt-get install -y --no-install-recommends gcc-arm-linux-gnueabi libc6-dev-armel-cross
5662
shell: bash
63+
- name: Install GCC (x86_64-pc-windows-gnu)
64+
if: ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
65+
run: |
66+
sudo apt-get update -y
67+
sudo apt-get install -y --no-install-recommends gcc-mingw-w64-x86-64
68+
shell: bash
5769
- name: Install emscripten (wasm32-unknown-emscripten)
5870
if: ${{ matrix.target == 'wasm32-unknown-emscripten' }}
5971
run: |
@@ -81,7 +93,7 @@ jobs:
8193
- os: windows-latest
8294
target: x86_64-pc-windows-msvc
8395
steps:
84-
- uses: actions/checkout@v3
96+
- uses: actions/checkout@main
8597
- uses: dtolnay/rust-toolchain@stable
8698
with:
8799
target: ${{ matrix.target }}
@@ -98,8 +110,8 @@ jobs:
98110
matrix:
99111
lua: [lua54, lua53, lua52, lua51]
100112
steps:
101-
- uses: actions/checkout@v3
102-
- uses: dtolnay/rust-toolchain@nightly
113+
- uses: actions/checkout@main
114+
- uses: dtolnay/rust-toolchain@stable
103115
with:
104116
target: wasm32-unknown-emscripten
105117
- name: Install emscripten
@@ -117,7 +129,7 @@ jobs:
117129
name: Rustfmt
118130
runs-on: ubuntu-latest
119131
steps:
120-
- uses: actions/checkout@v3
132+
- uses: actions/checkout@main
121133
- uses: dtolnay/rust-toolchain@stable
122134
with:
123135
components: rustfmt

0 commit comments

Comments
 (0)