Skip to content

try reusable workflow #3

try reusable workflow

try reusable workflow #3

name: "Static binary"
on:
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 5 in .github/workflows/static-binary-check.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/static-binary-check.yaml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
jobs:
check:
runs-on: ${{ matrix.system }}
strategy:
matrix:
system: [ ubuntu-latest, macos-latest ]
steps:
- name: Donwload om static binary
uses: actions/download-artifact@v4
with:
name: om-${{ matrix.system == 'ubuntu-latest' && 'x86_64-linux' || matrix.system == 'macos-latest' && 'aarch64-darwin' || matrix.system }}
- name: Check nix installation
run: |
if which nix; then
echo "nix is installed, exiting"
exit 1
elif test -d /nix; then
echo "/nix is present, exiting"
exit 1
else
echo "nix is not installed"
fi
- name: Run om static binary
run: |
chmod +x ./om
./om --help