Skip to content

Commit

Permalink
ci: run tests on mac & ubuntu without Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
hraban committed Feb 29, 2024
1 parent 1bcb827 commit a2c614f
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,43 @@ jobs:
-
name: Create artifact bundle
run: |
(cd result/bin && tar cvf $OLDPWD/artifacts.tar tomono)
(cd result/doc && tar rvf $OLDPWD/artifacts.tar index.html style.css)
(cd result/bin && tar cvf $OLDPWD/executables.tar tomono test)
(cd result/doc && tar rvf $OLDPWD/website.tar index.html style.css)
-
if: ${{ github.ref_type == 'branch' && github.ref == 'refs/heads/master' }}
uses: actions/upload-artifact@v3
name: "Upload website artifacts"
with:
name: bundle-${{github.sha}}
path: artifacts.tar
name: website-${{github.sha}}
path: website.tar
-
uses: actions/upload-artifact@v3
name: "Upload binary artifacts"
with:
name: executables-${{github.sha}}
path: binaries.tar

test-nonix:
timeout-minutes: 10
name: "Test stand-alone binary without Nix"
needs: build
strategy:
matrix:
config:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.config }}
steps:
- uses: actions/download-artifact@v3
with:
name: executables-${{github.sha}}
- name: Unpack artifacts
run: |
tar xvf artifacts.tar index.html style.css
rm -f artifacts.tar
- name: Run tests
run: |
./test
deploy_pages:
timeout-minutes: 10
Expand Down

0 comments on commit a2c614f

Please sign in to comment.