2022-12-21 01:00:02 -05:00
|
|
|
name: ubuntu-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: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2022-12-25 19:12:41 -05:00
|
|
|
- uses: styfle/cancel-workflow-action@0.11.0
|
2023-07-23 12:44:52 -04:00
|
|
|
if: ${{ !env.ACT }}
|
2022-12-21 01:00:02 -05:00
|
|
|
with:
|
|
|
|
access_token: ${{ github.token }}
|
2023-07-23 12:44:52 -04:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: '0'
|
|
|
|
submodules: 'recursive'
|
|
|
|
set-safe-directory: 'true'
|
|
|
|
- name: printenv && sudo apt update && sudo apt install scdoc -y
|
2022-12-25 23:27:03 -05:00
|
|
|
run: |
|
2023-07-23 12:44:52 -04:00
|
|
|
printenv && sudo apt update && sudo apt install scdoc -y
|
2022-12-25 23:27:03 -05:00
|
|
|
- name: "Build pre-release"
|
2022-12-21 01:00:02 -05:00
|
|
|
run: |
|
2023-07-23 12:44:52 -04:00
|
|
|
mkdir -p /usr/local/share/man/man1/nostril.1
|
|
|
|
make nostril
|
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"
|
2023-07-23 12:44:52 -04:00
|
|
|
if: ${{ !env.ACT }}
|
2022-12-21 01:00:02 -05:00
|
|
|
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-*
|