mirror of
https://github.com/SciresM/hactool.git
synced 2024-11-23 04:29:41 +00:00
49 lines
996 B
YAML
49 lines
996 B
YAML
on: [push, pull_request]
|
|
|
|
jobs:
|
|
main:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
job_name: ['linux', 'windows', 'macos']
|
|
|
|
include:
|
|
- job_name: linux
|
|
os: ubuntu-latest
|
|
shell: bash {0}
|
|
|
|
- job_name: windows
|
|
os: windows-latest
|
|
shell: msys2 {0}
|
|
|
|
- job_name: macos
|
|
os: macos-latest
|
|
shell: bash {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*
|