diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml deleted file mode 100644 index 90aa573..0000000 --- a/.github/workflows/pr.yaml +++ /dev/null @@ -1,62 +0,0 @@ -name: PR -on: - pull_request: - branches: [ main ] - push: - branches: [ main ] -jobs: - pr: - name: PR - runs-on: self-hosted - steps: - - name: Clone - uses: actions/checkout@v2 - - - name: Build - uses: docker://nixos/nix - with: - args: > - bash -ec " - nix \ - --extra-experimental-features flakes \ - --extra-experimental-features nix-command \ - --extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' \ - --extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' \ - build \ - --print-build-logs - " - - - name: Check - uses: docker://nixos/nix - with: - args: > - bash -ec " - nix \ - --extra-experimental-features flakes \ - --extra-experimental-features nix-command \ - --extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' \ - --extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' \ - flake \ - check \ - --print-build-logs - " - - # ERROR cargo_tarpaulin: Failed to run tests: ASLR disable failed: EPERM: Operation not permitted - # - name: Test - # uses: docker://nixos/nix - # with: - # args: > - # bash -ec " - # source <( \ - # nix \ - # --extra-experimental-features flakes \ - # --extra-experimental-features nix-command \ - # --extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' - # --extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' - # print-dev-env \ - # --no-update-lock-file \ - # --no-write-lock-file \ - # ) - - # cargo tarpaulin - # " diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index 1e35c04..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: Release -on: - push: - branches: [ main ] -jobs: - release: - env: - CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} - name: Release - runs-on: self-hosted - steps: - - name: Clone - uses: actions/checkout@v2 - - - name: Build and Release - uses: docker://nixos/nix - with: - args: > - bash -ec " - nix \ - --extra-experimental-features flakes \ - --extra-experimental-features nix-command \ - --extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' \ - --extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' \ - build \ - --print-build-logs - - nix \ - --extra-experimental-features flakes \ - --extra-experimental-features nix-command \ - --extra-substituters 'http://172.17.0.1:5000?priority=1&trusted=1' \ - --extra-substituters 'https://alejandra.cachix.org?priority=100&trusted=1' \ - develop \ - --profile \ - develop - - nix-env -iA cachix -f https://cachix.org/api/v1/install - - cachix push --compression-level 9 alejandra develop result - " diff --git a/buildkite.yaml b/buildkite.yaml new file mode 100644 index 0000000..40a0191 --- /dev/null +++ b/buildkite.yaml @@ -0,0 +1,4 @@ +steps: +- label: test + command: + - nix3 flake check