From 7369ec5bd398d4d3139cb04a96b9c0110a804a66 Mon Sep 17 00:00:00 2001 From: "@RandyMcMillan" Date: Wed, 21 Dec 2022 01:00:02 -0500 Subject: [PATCH] workflow: ubuntu/macos pre-release matrix .github/workflows/ubuntu-pre-release.yml: .github/workflows/macos-pre-release.yml: --- .github/workflows/macos-pre-release.yml | 42 ++++++++++++++++++++++++ .github/workflows/ubuntu-pre-release.yml | 40 ++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 .github/workflows/macos-pre-release.yml create mode 100644 .github/workflows/ubuntu-pre-release.yml diff --git a/.github/workflows/macos-pre-release.yml b/.github/workflows/macos-pre-release.yml new file mode 100644 index 0000000..99c43ef --- /dev/null +++ b/.github/workflows/macos-pre-release.yml @@ -0,0 +1,42 @@ +name: macos-pre-release + +# Controls when the action will run. +on: + push: + branches: + - 'master' + - '**-pre-release' + + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + pre-release: + strategy: + matrix: + os: [macos-11, macos-12, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v2 + - name: "build pre-release" + run: | + brew install libtool autoconf automake + printenv + make + shasum -a 256 nostril > nostril.sha256.txt + - name: Save state + run: echo "{name}={value}" >> $GITHUB_STATE + - name: Set output + run: echo "{name}={value}" >> $GITHUB_OUTPUT + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: ${{ matrix.os }} + prerelease: true + title: "Development Build" + files: | + nostril + nostril.sha256.txt diff --git a/.github/workflows/ubuntu-pre-release.yml b/.github/workflows/ubuntu-pre-release.yml new file mode 100644 index 0000000..4b5b532 --- /dev/null +++ b/.github/workflows/ubuntu-pre-release.yml @@ -0,0 +1,40 @@ +name: ubuntu-pre-release + +# Controls when the action will run. +on: + push: + branches: + - 'master' + - '**-pre-release' + + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + pre-release: + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} + - uses: actions/checkout@v2 + - name: "build pre-release" + run: | + make + shasum -a 256 nostril > nostril.sha256.txt + - name: Save state + run: echo "{name}={value}" >> $GITHUB_STATE + - name: Set output + run: echo "{name}={value}" >> $GITHUB_OUTPUT + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: ${{ matrix.os }} + prerelease: true + title: "Development Build" + files: | + nostril + nostril.sha256.txt