2022-12-21 01:00:02 -05:00
|
|
|
name: macos-pre-release
|
|
|
|
|
|
|
|
# Controls when the action will run.
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
2022-12-25 23:14:46 -05:00
|
|
|
- '**pre-release**'
|
2022-12-21 01:00:02 -05:00
|
|
|
|
|
|
|
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:
|
2022-12-25 19:12:41 -05:00
|
|
|
- uses: styfle/cancel-workflow-action@0.11.0
|
2022-12-21 01:00:02 -05:00
|
|
|
with:
|
|
|
|
access_token: ${{ github.token }}
|
|
|
|
- uses: actions/checkout@v2
|
2022-12-25 23:27:03 -05:00
|
|
|
- name: "printenv"
|
2022-12-21 01:00:02 -05:00
|
|
|
run: |
|
|
|
|
brew install libtool autoconf automake
|
|
|
|
printenv
|
2022-12-25 23:27:03 -05:00
|
|
|
- name: "Build pre-release"
|
|
|
|
run: |
|
2022-12-21 01:00:02 -05:00
|
|
|
make
|
2022-12-25 23:27:03 -05:00
|
|
|
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
|
2022-12-21 01:00:02 -05:00
|
|
|
- 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: |
|
2022-12-25 23:27:03 -05:00
|
|
|
nostril-*
|