Skip to content

refactor(ci): Separate jobs into individual files #1

refactor(ci): Separate jobs into individual files

refactor(ci): Separate jobs into individual files #1

name: "Static binary check"
on:
push:
branches:
- 'main'
pull_request:
jobs:
static-binary-check:

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

View workflow run for this annotation

GitHub Actions / Static binary check

Invalid workflow file

The workflow is not valid. .github/workflows/static-binary-check.yaml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
needs: main
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