summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Johnson <johnson.peter@gmail.com>2021-07-09 16:49:16 -0500
committerGitHub <noreply@github.com>2021-07-09 14:49:16 -0700
commitd938d97505fda33d0b387c8f2456272f00ad56a2 (patch)
treeb1f5b9aa6b3393798223a969d214872ed83dae96
parent3e74376b5653102a3957f59005969fcdbbe5a89d (diff)
downloadyasm-d938d97505fda33d0b387c8f2456272f00ad56a2.tar.gz
Add GitHub CI build workflow (#179)
-rw-r--r--.github/workflows/build.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 00000000..cc7d27b5
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,41 @@
+name: Build
+
+on: [push, pull_request]
+
+jobs:
+ build-host:
+ env:
+ MACOSX_DEPLOYMENT_TARGET: 10.14
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - os: macos-latest
+ artifact-name: macOS
+ - os: ubuntu-latest
+ artifact-name: Ubuntu
+
+ name: "Build - ${{ matrix.artifact-name }}"
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install autotools
+ run: |
+ if [ "$RUNNER_OS" == "macOS" ]; then
+ brew update
+ brew install automake autoconf
+ fi
+ - name: Autotools
+ run: ./autogen.sh
+ - name: Build
+ run: make
+ - name: Check
+ run: make check
+ - name: Dist
+ run: make dist
+
+ - uses: actions/upload-artifact@v2
+ with:
+ name: ${{ matrix.artifact-name }}
+ path: yasm-*.tar.gz
+