From f33d66c6df9530ed2c0e01a6e55becf408b73390 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 11 May 2020 16:57:40 +0800 Subject: [PATCH] Add github actions --- .github/workflows/build_master.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build_master.yml diff --git a/.github/workflows/build_master.yml b/.github/workflows/build_master.yml new file mode 100644 index 0000000..9c4e8bc --- /dev/null +++ b/.github/workflows/build_master.yml @@ -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 }} \ No newline at end of file