From 4ceb1a2f52498222df014d2ca4c105510ac0752a Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Fri, 12 Jun 2020 02:57:20 +0200 Subject: [PATCH] Add aarch64 CI --- .github/workflows/build-ubuntu-aarch64.yml | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build-ubuntu-aarch64.yml diff --git a/.github/workflows/build-ubuntu-aarch64.yml b/.github/workflows/build-ubuntu-aarch64.yml new file mode 100644 index 0000000..edbfbf5 --- /dev/null +++ b/.github/workflows/build-ubuntu-aarch64.yml @@ -0,0 +1,47 @@ +name: CMake Build (Ubuntu x86-64) + +on: + push: + branches: + - master + pull_request: + branches: + - master + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v1 + - 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,g++,pkg-config}-aarch64-linux-gnu libsdl2-dev:arm64 qt5-default:arm64 + - name: Create build environment + run: mkdir ${{runner.workspace}}/build + - name: Configure + shell: bash + working-directory: ${{runner.workspace}}/build + run: | + CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ cmake -DPKG_CONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + - name: Make + shell: bash + working-directory: ${{runner.workspace}}/build + run: | + make -j$(nproc --all) \ + && mkdir dist \ + && cp melonDS dist + - uses: actions/upload-artifact@v1 + with: + name: melonDS + path: ${{runner.workspace}}/build/dist