Skip to content

Hurrah. I think draft builds are working now. #12

Hurrah. I think draft builds are working now.

Hurrah. I think draft builds are working now. #12

Workflow file for this run

name: draft
# Mostly from https://jon.sprig.gs/blog/post/2442
# Create a draft release on every push.
on:
push:
jobs:
build_release:
name: Build Release
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
release_suffix: ubuntu
- os: macos-latest
release_suffix: mac
- os: windows-latest
release_suffix: windows
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Linux Build
if: matrix.os == 'ubuntu-latest'
run: |
make
make check
make artifacts
- name: Run Mac Build
if: matrix.os == 'macos-latest'
run: |
brew install gawk
make
make check
make artifacts
- name: Run Windows Build
if: matrix.os == 'windows-latest'
run: |
choco install winflexbison -y
make
make check
make artifacts
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: draftbuild
draft: true
prerelease: false
generate_release_notes: false
files: |
tokenize-*.tar.gz