autosave (pavel-am5 / Linux) #1100
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: nixox-config | |
| on: | |
| push: | |
| branches: ["main"] | |
| tags: | |
| - "v*.*.*" | |
| pull_request: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| build-linux: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # see : https://github.com/actions/runner-images | |
| include: | |
| - target: linux-amd64 | |
| os: ubuntu-latest | |
| runs-on: [] | |
| name: ${{ matrix.target }} | |
| runs-on: | |
| - ${{ matrix.os }} | |
| - ${{ matrix.runs-on }} | |
| steps: | |
| - uses: wimpysworld/nothing-but-nix@v6 | |
| with: | |
| hatchet-protocol: "rampage" | |
| - uses: 7mind/github-env@minimal | |
| with: | |
| setup-nix: ${{ matrix.preconfigured != true }} | |
| - name: Verify configurations | |
| run: | | |
| ./verify-configs --no-submodules | |
| - name: Check flake | |
| run: | | |
| # Workaround for uninitialized submodules (empty dirs) causing invalid path errors in Nix | |
| git submodule status | grep '^-' | awk '{print $2}' | while read -r mod; do | |
| if [[ -d "$mod" ]] && [ -z "$(ls -A "$mod")" ]; then | |
| rmdir "$mod" | |
| fi | |
| done | |
| nix flake check --no-build | |
| build-max: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: macos-aarch64-14 | |
| runs-on: [] | |
| os: macos-14 # yes, this is aarch64 | |
| name: ${{ matrix.target }} | |
| runs-on: | |
| - ${{ matrix.os }} | |
| - ${{ matrix.runs-on }} | |
| steps: | |
| - uses: 7mind/github-env@minimal | |
| with: | |
| setup-nix: ${{ matrix.preconfigured != true }} | |
| - name: Verify configurations | |
| run: | | |
| ./verify-configs --no-submodules | |
| - name: Check flake | |
| run: | | |
| # Workaround for uninitialized submodules (empty dirs) causing invalid path errors in Nix | |
| git submodule status | grep '^-' | awk '{print $2}' | while read -r mod; do | |
| if [[ -d "$mod" ]] && [ -z "$(ls -A "$mod")" ]; then | |
| rmdir "$mod" | |
| fi | |
| done | |
| nix flake check --no-build |