Skip to content

Merge branch 'master' of github.com:headblockhead/SQUIRREL #2

Merge branch 'master' of github.com:headblockhead/SQUIRREL

Merge branch 'master' of github.com:headblockhead/SQUIRREL #2

Workflow file for this run

name: Build, Test, and Release
on:
push:
pull_request:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- uses: DeterminateSystems/nix-installer-action@b92f66560d6f97d6576405a7bae901ab57e72b6a
- uses: DeterminateSystems/magic-nix-cache-action@a76a83091cd8728db8c37312dbdd0eeb1177a6c0
- run: nix build '.?submodules=1#squirrel'
- uses: actions/upload-artifact@184d73b71b93c222403b2e7f1ffebe4508014249
with:
name: libsquirrel.a
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: recursive
- uses: DeterminateSystems/nix-installer-action@b92f66560d6f97d6576405a7bae901ab57e72b6a
- uses: DeterminateSystems/magic-nix-cache-action@a76a83091cd8728db8c37312dbdd0eeb1177a6c0
- run: nix flake check
release:
concurrency:
group: release
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
needs: [build, test]
env:
VERSION: ${{github.event.after}}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
fetch-depth: '0'
- uses: actions/download-artifact@d0ce8fd1167ed839810201de977912a090ab10a7
with:
name: libsquirrel.a
- uses: anothrNick/[email protected]
id: tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
- run: gh release create ${{steps.tag.outputs.new_tag}} -d --generate-notes libsquirrel.a