refactor(ci): Separate jobs into individual files #2
This file contains hidden or 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: "Static binary" | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
jobs: | ||
check: | ||
Check failure on line 9 in .github/workflows/static-binary-check.yaml
|
||
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 |