Skip to content

Commit 6d859f0

Browse files
authored
Upgrade GitHub Actions to support an ARM processor
* Upgrade GitHub Actions * GitHub Actions: Also test on an ARM processor * Default branch is main, not master * Update testing.yml * if: ${{ runner.arch }} == "X64" * runner.arch * Update testing.yml * Update testing.yml
1 parent 4a8bafc commit 6d859f0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/testing.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: run test cases
22

33
on:
44
push:
5-
branches: [master, develop]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [master, develop]
7+
branches: [main, develop]
88

99
jobs:
1010
testing:
1111
strategy:
1212
matrix:
13-
os: [ubuntu-22.04, ubuntu-24.04]
13+
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
1414
compiler: [gcc, clang]
1515

1616
runs-on: ${{ matrix.os }}
@@ -26,10 +26,16 @@ jobs:
2626
tar zxvf bats-core-1.2.1.tar.gz
2727
cd bats-core-1.2.1 &&
2828
sudo ./install.sh /usr/local
29-
- name: install uncrustify
29+
- name: install uncrustify ${{ runner.arch }} == X64
30+
# if: runner.arch == "X64"
3031
run: |
3132
curl -LO http://launchpadlibrarian.net/516341795/uncrustify_0.72.0+dfsg1-2_amd64.deb
3233
sudo dpkg -i uncrustify_0.72.0+dfsg1-2_amd64.deb || true
34+
- name: install uncrustify ${{ runner.arch }} == ARM64
35+
# if: runner.arch == "ARM64"
36+
run: |
37+
curl -LO http://launchpadlibrarian.net/516341795/uncrustify_0.72.0+dfsg1-2_arm64.deb
38+
sudo dpkg -i uncrustify_0.72.0+dfsg1-2_arm64.deb || true
3339
- name: build packcc
3440
run: |
3541
(

0 commit comments

Comments
 (0)