make:detect:brew install scdoc #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macos-build-artifacts | |
# Controls when the action will run. | |
on: | |
push: | |
branches: | |
- 'ma**' | |
- '**artifacts**' | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build-artifacts: | |
strategy: | |
matrix: | |
os: [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 help2man scdoc coreutils | |
printenv | |
- name: "Build Artifacts" | |
run: | | |
#make install dist || sudo make install dist | |
make all nostril || sudo make all nostril | |
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: true | |
title: "Build Artifacts" | |
files: | | |
nostril* | |
gnostr* | |
dist/* | |
dist/**.** |