Add workflows to build test Atmosphere

This commit is contained in:
eXhumer 2020-06-05 23:18:25 -06:00
parent 8fee841914
commit 2d10f63ab6
No known key found for this signature in database
GPG Key ID: 068C85F7D5DC3FA5
2 changed files with 78 additions and 0 deletions

45
.github/workflows/atmosphere.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Atmosphere CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
defaults:
run:
shell: bash
jobs:
build-test-dist-no-debug:
name: Build Test (dist-no-debug)
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@v2
- name: Download dkp-pacman
run: wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
- name: Install dkp-pacman
run: sudo dpkg --install devkitpro-pacman.deb
- name: Delete downloaded dkp-pacman
run: rm -rf devkitpro-pacman.deb
- name: Update packages from dkp-pacman to latest
run: sudo dkp-pacman --sync --refresh --sysupgrade --noconfirm
- name: Install packages required for build from dkp-pacman
run: sudo dkp-pacman --sync --noconfirm devkitARM devkitA64 devkit-env general-tools switch-tools libnx switch-libjpeg-turbo
- name: Install pycryptodome for python2 (Yes, python2 is still used in an actively developed project in 2020)
run: pip install pycryptodome
- name: Build target dist-no-debug
run: |
source /etc/profile.d/devkit-env.sh
make --directory=$GITHUB_WORKSPACE --file=$GITHUB_WORKSPACE/Makefile dist-no-debug

33
.travis.yml Normal file
View File

@ -0,0 +1,33 @@
language: cpp
os: linux
dist: bionic
compiler: gcc
python:
- "2.7"
jobs:
include:
- stage: "Build Test (dist-no-debug)"
before_install:
- wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb
install:
- sudo dpkg --install devkitpro-pacman.deb
- sudo dkp-pacman --sync --refresh --sysupgrade --noconfirm
- sudo dkp-pacman --sync --noconfirm devkitARM devkitA64 devkit-env general-tools switch-tools libnx switch-libjpeg-turbo
- pip install --upgrade pip
- pip install pycryptodome
before_script:
- source /etc/profile.d/devkit-env.sh
- rm -rf devkitpro-pacman.deb
- git checkout master
script:
- make dist-no-debug
branches:
only:
- master