Skip to content

Commit 8e4aeea

Browse files
committed
Update CI scripts
1 parent 68adc35 commit 8e4aeea

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

.github/workflows/build-linux-multi-arch.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: linux multi-arch CI
1+
name: Linux CI (Ubuntu, Multi Arch)
22

33
# Based on the workflow file of QGroundControl repo
44

@@ -15,18 +15,18 @@ env:
1515

1616
jobs:
1717
build:
18-
runs-on: ubuntu-20.04
18+
runs-on: ubuntu-22.04
1919
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
2020

2121
strategy:
2222
matrix:
2323
include:
2424
- arch: armv7
25-
distro: ubuntu20.04
25+
distro: ubuntu22.04
2626
- arch: aarch64
27-
distro: ubuntu20.04
27+
distro: ubuntu22.04
2828
- arch: riscv64
29-
distro: ubuntu20.04
29+
distro: ubuntu22.04
3030

3131
steps:
3232
- name: Checkout repo
@@ -40,26 +40,17 @@ jobs:
4040
tar -xzf QCustomPlot-source.tar.gz
4141
cp qcustomplot-source/qcustomplot.* ${{ env.SOURCE_DIR }}/src
4242
43-
- name: Install Qt
44-
run: |
45-
sudo apt-get -q -y update
46-
sudo apt-get -q -y install git build-essential
47-
sudo apt-get -q -y install qt5-default libqt5serialport5-dev qtconnectivity5-dev
48-
4943
- name: Create build directory
5044
run: |
5145
mkdir ${{ runner.temp }}/shadow_build_dir
5246
5347
- name: Build
54-
uses: uraimo/run-on-arch-action@v2.5.1
48+
uses: uraimo/run-on-arch-action@v2.6.0
5549
id: build
5650
with:
5751
arch: ${{ matrix.arch }}
5852
distro: ${{ matrix.distro }}
5953

60-
# Not required, but speeds up builds
61-
githubToken: ${{ github.token }}
62-
6354
# Create an artifacts directory
6455
# setup: |
6556
# mkdir -p "${PWD}/artifacts"
@@ -85,14 +76,14 @@ jobs:
8576
install: |
8677
apt-get update -q -y
8778
apt-get install -q -y git build-essential
88-
apt-get install -q -y qt5-default libqt5serialport5-dev qtconnectivity5-dev
79+
apt-get install -q -y qtbase5-dev qt5-qmake libqt5serialport5-dev qtconnectivity5-dev
8980
9081
# Produce a binary artifact and place it in the mounted volume
9182
run: |
9283
cd /shadow_build_dir
93-
export JOBS=$(nproc)
84+
export QT_SELECT=qt5
9485
qmake -r /shadow_src_dir/src/SerialTest.pro
95-
make -j$JOBS && make clean
86+
make -j$((`nproc` + 1)) && make clean
9687
9788
- name: Save artifact
9889
uses: actions/upload-artifact@master

.github/workflows/build-macos.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ jobs:
4141
- name: Build
4242
working-directory: ${{ runner.temp }}/shadow_build_dir
4343
run: |
44-
export JOBS=$((`sysctl -n hw.ncpu`+1))
4544
qmake -r ${{ env.SOURCE_DIR }}/src/SerialTest.pro CONFIG+=app_bundle
46-
make -j$JOBS
45+
make -j$((`sysctl -n hw.ncpu` + 1))
4746
4847
- name: Generate DMG file
4948
run: |

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Build
4949
run: |
5050
qmake -r ./src/SerialTest.pro
51-
make -j $(nproc)
51+
make -j $((`nproc` + 1))
5252
make clean
5353
5454
- name: Copy DLLs

0 commit comments

Comments
 (0)