aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2020-07-27 15:56:43 +0200
committerNadia Holmquist Pedersen <nadia@nhp.sh>2020-07-27 15:56:43 +0200
commit5c08207f359479fdd16fa8517f9d2a5e8fe52c63 (patch)
tree2bb4fb50bc47cd9a6efebb90aab8d68637217a6d /.github/workflows
parent17ce4d2a73770ecd8c5f0ff036636b5453cb86c9 (diff)
Do full upgrade to avoid issues when installing ARM dependencies
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-ubuntu-aarch64.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/build-ubuntu-aarch64.yml b/.github/workflows/build-ubuntu-aarch64.yml
index 6d0bfde..e6d4a87 100644
--- a/.github/workflows/build-ubuntu-aarch64.yml
+++ b/.github/workflows/build-ubuntu-aarch64.yml
@@ -17,16 +17,22 @@ jobs:
steps:
- uses: actions/checkout@v1
+ - name: Upgrade system
+ shell: bash
+ working-directory: ${{runner.workspace}}
+ run: |
+ sudo apt update
+ sudo apt full-upgrade
- name: Install dependencies
shell: bash
working-directory: ${{runner.workspace}}
run: |
- sudo dpkg --add-architecture arm64 \
- && sudo sh -c "sed \"s|^deb \([a-z\.:/]*\) \([a-z\-]*\) \(.*\)$|deb [arch=amd64] \1 \2 \3\ndeb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports \2 \3|\" /etc/apt/sources.list > /etc/apt/sources.list.new" \
- && sudo rm /etc/apt/sources.list \
- && sudo mv /etc/apt/sources.list{.new,} \
- && sudo apt-get update \
- && sudo apt-get install {gcc-10,g++-10,pkg-config}-aarch64-linux-gnu libsdl2-dev:arm64 qtbase5-dev:arm64
+ sudo dpkg --add-architecture arm64
+ sudo sh -c "sed \"s|^deb \([a-z\.:/]*\) \([a-z\-]*\) \(.*\)$|deb [arch=amd64] \1 \2 \3\ndeb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports \2 \3|\" /etc/apt/sources.list > /etc/apt/sources.list.new"
+ sudo rm /etc/apt/sources.list
+ sudo mv /etc/apt/sources.list{.new,}
+ sudo apt update
+ sudo apt install {gcc-10,g++-10,pkg-config}-aarch64-linux-gnu libsdl2-dev:arm64 qtbase5-dev:arm64
- name: Create build environment
run: mkdir ${{runner.workspace}}/build
- name: Configure