workflows: ubuntu/macos-release.yml builds

push detects version tags
detect v*.*.*
and version release candidates
v*.*.*-rc**
This commit is contained in:
@RandyMcMillan 2022-12-25 23:27:03 -05:00 committed by randymcmillan
parent eb859da6a2
commit 5d55b929d3
No known key found for this signature in database
GPG Key ID: 85495A938B7F78DF
4 changed files with 112 additions and 8 deletions

View File

@ -21,12 +21,18 @@ jobs:
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: "build pre-release"
- name: "printenv"
run: |
brew install libtool autoconf automake
printenv
- name: "Build pre-release"
run: |
make
shasum -a 256 nostril > nostril.sha256.txt
mv nostril nostril-$RUNNER_OS-$RUNNER_ARCH
shasum -a 256 nostril-$RUNNER_OS-$RUNNER_ARCH > nostril-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
mv nostril-query nostril-query-$RUNNER_OS-$RUNNER_ARCH
shasum -a 256 nostril-query-$RUNNER_OS-$RUNNER_ARCH > nostril-query-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
ls -a
- name: Save state
run: echo "{name}={value}" >> $GITHUB_STATE
- name: Set output
@ -38,5 +44,4 @@ jobs:
prerelease: true
title: "Development Build"
files: |
nostril
nostril.sha256.txt
nostril-*

47
.github/workflows/macos-release.yml vendored Normal file
View File

@ -0,0 +1,47 @@
name: macos-release
# Controls when the action will run.
on:
push:
tags:
- "v*"
- "v*.*.*-rc**"
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
release:
strategy:
matrix:
os: [macos-11, macos-12, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: "printenv"
run: |
brew install libtool autoconf automake
printenv
- name: "Build release"
run: |
make
mv nostril nostril-$RUNNER_OS-$RUNNER_ARCH
shasum -a 256 nostril-$RUNNER_OS-$RUNNER_ARCH > nostril-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
mv nostril-query nostril-query-$RUNNER_OS-$RUNNER_ARCH
shasum -a 256 nostril-query-$RUNNER_OS-$RUNNER_ARCH > nostril-query-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
ls -a
- 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: false
title: "Release Build"
files: |
nostril-*

View File

@ -21,10 +21,17 @@ jobs:
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: "build pre-release"
- name: "printenv"
run: |
printenv
- name: "Build pre-release"
run: |
make
shasum -a 256 nostril > nostril.sha256.txt
mv nostril nostril-$RUNNER_OS-$RUNNER_ARCH
shasum -a 256 nostril-$RUNNER_OS-$RUNNER_ARCH > nostril-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
mv nostril-query nostril-query-$RUNNER_OS-$RUNNER_ARCH
shasum -a 256 nostril-query-$RUNNER_OS-$RUNNER_ARCH > nostril-query-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
ls -a
- name: Save state
run: echo "{name}={value}" >> $GITHUB_STATE
- name: Set output
@ -36,5 +43,4 @@ jobs:
prerelease: true
title: "Development Build"
files: |
nostril
nostril.sha256.txt
nostril-*

46
.github/workflows/ubuntu-release.yml vendored Normal file
View File

@ -0,0 +1,46 @@
name: ubuntu-release
# Controls when the action will run.
on:
push:
tags:
- "v*"
- "v*.*.*-rc**"
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
release:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: "printenv"
run: |
printenv
- name: "Build release"
run: |
make
mv nostril nostril-$RUNNER_OS-$RUNNER_ARCH
shasum -a 256 nostril-$RUNNER_OS-$RUNNER_ARCH > nostril-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
mv nostril-query nostril-query-$RUNNER_OS-$RUNNER_ARCH
shasum -a 256 nostril-query-$RUNNER_OS-$RUNNER_ARCH > nostril-query-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
ls -a
- 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: false
title: "Release Build"
files: |
nostril-*