aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2024-10-01 15:29:49 +0200
committerLoïc Hoguin <[email protected]>2024-10-01 15:31:01 +0200
commit4b7766cdfdcd0fc85e6091bdccb5daef195fc8b2 (patch)
tree8aed1cb55bc37fb3932711bae3b761d54d967959
parent5424b279300532a892f10063170c88d79a9a1e5d (diff)
downloaderlang.mk-4b7766cdfdcd0fc85e6091bdccb5daef195fc8b2.tar.gz
erlang.mk-4b7766cdfdcd0fc85e6091bdccb5daef195fc8b2.tar.bz2
erlang.mk-4b7766cdfdcd0fc85e6091bdccb5daef195fc8b2.zip
Initial GitHub Actions test workflow
-rw-r--r--.github/workflows/ci.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..a489f35
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,38 @@
+name: Check Erlang.mk
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ schedule:
+ ## Every Monday at 4am.
+ - cron: 0 4 * * 1
+
+jobs:
+ check:
+ strategy:
+ fail-fast: false
+ matrix:
+ erlang:
+ - '27'
+ os:
+ - macos-latest
+ - ubuntu-latest
+ - windows-latest
+ extra: ['', 'LEGACY=1']
+ runs-on: ${{ matrix.os }}
+
+ steps:
+
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Install Erlang/OTP
+ uses: erlef/setup-beam@v1
+ with:
+ otp-version: ${{ matrix.erlang }}
+ version-type: loose
+
+ - name: Run tests
+ run: ${{ matrix.os == 'macos-latest' && 'gmake' || 'make' }} check -j 8 -k ${{ matrix.extra }}