aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2024-09-24 07:48:34 -0500
committerCalvin Rose <calsrose@gmail.com>2024-09-24 07:48:34 -0500
commitd015a3596d6a1dcd2cebdf14ada0e041f4262dbe (patch)
tree463fa4f9f9cdeef7f1788b404a9923f1e8d3a75c /.github/workflows
parentClean up some leaked descriptors in spork/cc. (diff)
Start adding more windows testing.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml54
1 files changed, 49 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index bde5ce0..51b630f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -7,10 +7,54 @@ on:
branches: [ master ]
jobs:
- test:
-
- runs-on: ubuntu-latest
+ test-posix:
+ name: Build and test on POSIX systems
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ ubuntu-latest, macos-latest, macos-13 ]
+ steps:
+ - name: Checkout Janet
+ uses: actions/checkout@v4
+ with:
+ name: janet-lang/janet
+ path: janet
+ ref: refs/heads/master
+ - name: Build + Install Janet
+ run: cd janet && make clean && make && make install
+ - name: Checkout the repository
+ uses: actions/checkout@v4
+ with:
+ path: spork
+ - name: Build Spork
+ run: cd spork && janet -l ./bundle -e "(build)"
+ - name: Run Tests
+ run: cd spork && janet -l ./bundle -e "(test)"
+ - name: Test Install
+ run: janet -e '(bundle/install "spork")'
+ test-windows:
+ name: Build and test on Windows
+ strategy:
+ matrix:
+ os: [ windows-latest, windows-2019 ]
+ runs-on: ${{ matrix.os }}
steps:
- - name: "Test project"
- uses: pyrmont/action-janet-test@v2
+ - name: Checkout the repository
+ uses: actions/checkout@v4
+ with:
+ path: spork
+ - name: Setup MSVC
+ uses: ilammy/msvc-dev-cmd@v1
+ - name: Download Janet Latest Release
+ shell: cmd
+ run: curl -fSLo janet.msi https://github.com/janet-lang/janet/releases/download/v1.36.0/janet-1.36.0-windows-x64-installer.msi
+ - name: Install Janet
+ shell: cmd
+ run: msiexec /i janet.msi /passive
+ - name: Build Spork
+ run: cd spork && janet -l ./bundle -e "(build)"
+ - name: Run Tests
+ run: cd spork && janet -l ./bundle -e "(test)"
+ - name: Test Install
+ run: janet -e "(bundle/install `spork`)"