diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51e2918c7..b3fb051da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,10 @@ name: Binary Build on: push: - branches: '*' - pull_request: - branches: [master] # This allows us to test PRs without always needing to build locally. It's secure as all first time contributors first need to be approved for running GitHub actions + branches: + - master + - 'v.+' + tags: ['**'] jobs: build: strategy: diff --git a/.github/workflows/check_js.yml b/.github/workflows/check_js.yml index 9d6bca350..c38af1f29 100644 --- a/.github/workflows/check_js.yml +++ b/.github/workflows/check_js.yml @@ -1,7 +1,5 @@ name: Check JavaScript on: - push: - branches: '*' pull_request: branches: [master] jobs: diff --git a/.github/workflows/pr_compile_check.yml b/.github/workflows/pr_compile_check.yml deleted file mode 100644 index 77dc3fe25..000000000 --- a/.github/workflows/pr_compile_check.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Check PR compiles without errors -on: - pull_request: - branches: [master] -jobs: - tests: - runs-on: ARM64 - steps: - - uses: actions/checkout@v3 - - run: | - cd $GITHUB_WORKSPACE - nix develop --impure --command fastbuild diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b0c93de77..4eb8484b4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,23 +1,12 @@ -name: "Tests" +name: "Tests + Compile" on: pull_request: branches: [master] - push: - branches: [master] jobs: tests: runs-on: ARM64 steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v22 - with: - nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/a95ed9fe764c3ba2bf2d2fa223012c379cd6b32e.tar.gz - if: matrix.os != 'ARM64' - - uses: cachix/cachix-action@v12 - with: - name: digitallyinduced - signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - if: matrix.os != 'ARM64' - run: nix develop --impure --command tests + - run: nix develop --impure --command fastbuild \ No newline at end of file