diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 5855aa2..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,62 +0,0 @@ ---- -name: "Build Packages" -on: - pull_request: - push: -jobs: - pre-job: - continue-on-error: true - runs-on: ubuntu-latest - outputs: - should_skip: ${{ steps.skip_check.outputs.should_skip }} - steps: - - id: skip_check - uses: fkirc/skip-duplicate-actions@v5 - with: - concurrent_skipping: "same_content_newer" - cancel_others: "true" - agent: - runs-on: ubuntu-latest - strategy: - matrix: - # https://github.com/nix-systems/default-linux - system: ["x86_64-linux", "aarch64-linux"] - needs: pre-job - permissions: - contents: read - if: needs.pre-job.outputs.should_skip != 'true' - steps: - - uses: actions/checkout@v5 - - uses: ./.github/actions/setup-nix - with: - cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - withQEMU: true - - run: nix build .#packages.${{ matrix.system }}.agent --print-build-logs - wire: - runs-on: ubuntu-latest - needs: agent - permissions: - contents: read - strategy: - matrix: - # https://github.com/nix-systems/default-linux - system: ["x86_64-linux", "aarch64-linux"] - steps: - - uses: actions/checkout@v5 - - uses: ./.github/actions/setup-nix - with: - cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - withQEMU: true - - run: nix build .#packages.${{ matrix.system }}.wire --print-build-logs - docs: - runs-on: ubuntu-latest - needs: pre-job - permissions: - contents: read - if: needs.pre-job.outputs.should_skip != 'true' - steps: - - uses: actions/checkout@v5 - - uses: ./.github/actions/setup-nix - with: - cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - run: nix build .#docs diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e08ca5..6190489 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,47 +46,3 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Nextest run: nix develop --print-build-logs -v --command cargo nextest run - find-vm-tests: - runs-on: ubuntu-latest - needs: pre-job - permissions: - contents: read - if: needs.pre-job.outputs.should_skip != 'true' - outputs: - tests: ${{ steps.tests.outputs.tests }} - steps: - - uses: actions/checkout@v5 - - name: Cache Tests - id: cache - uses: actions/cache@v4 - with: - key: ${{ runner.os }}-tests-${{ hashFiles('tests/nix/default.nix') }} - path: tests.json - - uses: ./.github/actions/setup-nix - with: - cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - name: find tests - if: steps.cache.outputs.cache-hit != 'true' - run: | - nix eval --impure --json --expr \ - 'with builtins; filter ((import {}).lib.hasPrefix "vm-") (attrNames (getFlake "${{ github.workspace }}").checks.x86_64-linux)' \ - > tests.json - - name: set output - id: tests - run: | - echo "tests=$(cat tests.json)" >> "$GITHUB_OUTPUT" - vm-tests: - runs-on: ubuntu-latest - needs: find-vm-tests - strategy: - matrix: - test: ${{ fromJSON(needs.find-vm-tests.outputs.tests) }} - steps: - - uses: actions/checkout@v5 - - uses: ./.github/actions/setup-nix - with: - withQEMU: true - cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - name: Build - timeout-minutes: 60 - run: nix build .#checks.x86_64-linux.${{ matrix.test }} --print-build-logs