mirror of
https://github.com/jb55/nostril.git
synced 2024-12-28 04:25:50 -05:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
|
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
|