Merge pull request #91 from 3DSGuy/github-actions

Add GitHub actions
This commit is contained in:
Jack
2020-05-11 16:59:14 +08:00
committed by GitHub
3 changed files with 35 additions and 35 deletions
-29
View File
@@ -1,29 +0,0 @@
version: '{build}'
os:
- Visual Studio 2017
- Ubuntu1804
install:
- cmd: set PATH=%PATH%;C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
build_script:
- cmd: |
mingw32-make -j 6 -C ctrtool
mingw32-make -j 6 -C makerom
- sh: |
make -j 2 -C ctrtool
make -j 2 -C makerom
after_build:
- cmd: |
move ctrtool\ctrtool.exe && move makerom\makerom.exe
7z a Project_CTR.zip ctrtool.exe makerom.exe
- sh: |
cd ctrtool && 7z u ../Project_CTR.zip ctrtool
cd ../makerom && 7z u ../Project_CTR.zip makerom
test: off
artifacts:
- path: Project_CTR.zip
+34
View File
@@ -0,0 +1,34 @@
name: Compile Master Branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [ created ]
jobs:
build:
name: Compile ${{ matrix.prog }} for ${{ matrix.dist }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
dist: [ubuntu_x86_64, macos_x86_64, win_x86_64]
prog: [ctrtool, makerom]
include:
- dist: win_x86_64
os: windows-2016
binExt: .exe
- dist: ubuntu_x86_64
os: ubuntu-latest
- dist: macos_x86_64
os: macos-latest
steps:
- uses: actions/checkout@v1
- name: Compile ${{ matrix.prog }}
run: cd ${{ matrix.prog }}; make ${{ matrix.makeArgs }};
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.prog }}-${{ matrix.dist }}
path: ${{ matrix.prog }}/${{ matrix.prog }}${{ matrix.binExt }}
+1 -6
View File
@@ -3,9 +3,4 @@ Project_CTR
ctrtool - updated version of neimod's ctrtool.
makerom - creates CTR cxi/cfa/cci/cia files.
## CI Builds
Thanks to @Margen67 we have AppVeyor make new builds for each commit to master.
Download them here: https://ci.appveyor.com/project/jakcron/project-ctr
makerom - creates CTR cxi/cfa/cci/cia files.