2020-06-11 19:00:53 -06:00
|
|
|
name: CMake Build (Ubuntu aarch64)
|
2020-06-11 18:57:20 -06:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-07-27 07:56:43 -06:00
|
|
|
- name: Upgrade system
|
|
|
|
shell: bash
|
|
|
|
working-directory: ${{runner.workspace}}
|
2020-09-24 11:17:39 -06:00
|
|
|
run: | #Fix grub installation error - https://github.com/actions/virtual-environments/issues/1605
|
2020-07-27 07:56:43 -06:00
|
|
|
sudo apt update
|
2020-09-24 11:17:39 -06:00
|
|
|
sudo apt-get install grub-efi
|
|
|
|
sudo update-grub
|
2020-07-27 07:56:43 -06:00
|
|
|
sudo apt full-upgrade
|
2020-06-11 18:57:20 -06:00
|
|
|
- name: Install dependencies
|
|
|
|
shell: bash
|
|
|
|
working-directory: ${{runner.workspace}}
|
|
|
|
run: |
|
2020-11-11 10:29:25 -07:00
|
|
|
sudo rm -f /etc/apt/sources.list.d/kubernetes.list
|
2020-07-27 07:56:43 -06:00
|
|
|
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
|
2020-09-24 11:17:39 -06:00
|
|
|
sudo apt install aptitude
|
2021-01-26 06:19:32 -07:00
|
|
|
sudo aptitude install -y {gcc-10,g++-10,pkg-config}-aarch64-linux-gnu libsdl2-dev:arm64 qtbase5-dev:arm64 libslirp-dev:arm64 libarchive-dev:arm64 libepoxy-dev:arm64
|
2020-06-11 18:57:20 -06:00
|
|
|
- name: Create build environment
|
|
|
|
run: mkdir ${{runner.workspace}}/build
|
|
|
|
- name: Configure
|
|
|
|
shell: bash
|
|
|
|
working-directory: ${{runner.workspace}}/build
|
|
|
|
run: |
|
2020-06-11 19:21:57 -06:00
|
|
|
CC=aarch64-linux-gnu-gcc-10 CXX=aarch64-linux-gnu-g++-10 cmake -DPKG_CONFIG_EXECUTABLE=/usr/bin/aarch64-linux-gnu-pkg-config $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
|
2020-06-11 18:57:20 -06:00
|
|
|
- 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
|