mirror of
https://github.com/SciresM/hactool
synced 2024-11-22 03:53:09 +00:00
Add CI (#104)
This commit is contained in:
parent
23ad591e6f
commit
19a6b22a02
1 changed files with 44 additions and 0 deletions
44
.github/workflows/build.yml
vendored
Normal file
44
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
main:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
job_name: ['linux', 'windows']
|
||||
|
||||
include:
|
||||
- job_name: linux
|
||||
os: ubuntu-latest
|
||||
shell: bash {0}
|
||||
|
||||
- job_name: windows
|
||||
os: windows-latest
|
||||
shell: msys2 {0}
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: ${{ matrix.shell }}
|
||||
|
||||
name: hactool-${{ matrix.job_name }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: msys2/setup-msys2@v2
|
||||
if: matrix.os == 'windows-latest'
|
||||
with:
|
||||
path-type: inherit
|
||||
msystem: MINGW64
|
||||
update: true
|
||||
install: mingw-w64-x86_64-gcc mingw-w64-x86_64-make
|
||||
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- run: |
|
||||
mv config.mk.template config.mk
|
||||
make -j$(nproc)
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: hactool-${{ matrix.job_name }}
|
||||
path: hactool*
|
Loading…
Reference in a new issue