diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f240ec3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: "Check evaluation" +on: [push] +jobs: + check_evaluation: + runs-on: macos-14 # The processor on this label is M1, not x86_64 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install nix + uses: cachix/install-nix-action@v25 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - name: Verify update.sh + run: | + chmod +x update.sh + ./update.sh + + - name: Build nix packages + run: nix-build ci-shell.nix diff --git a/.github/workflows/update-sources.yaml b/.github/workflows/update-sources.yaml index 094692d..57fd6ca 100644 --- a/.github/workflows/update-sources.yaml +++ b/.github/workflows/update-sources.yaml @@ -1,22 +1,23 @@ --- -name: update-sources +name: "Update sources" on: - workflow_dispatch: + workflow_run: + workflows: ["Check evaluation"] + types: + - completed schedule: # runs every midnight - cron: "0 0 * * *" - push: - branches: - - main + jobs: update-sources: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v16 + uses: cachix/install-nix-action@v25 with: nix_path: nixpkgs=channel:nixos-unstable @@ -26,7 +27,7 @@ jobs: ./update.sh - name: Commit changes - uses: EndBug/add-and-commit@v7.5.0 + uses: EndBug/add-and-commit@v9.1.4 with: default_author: github_actions message: "Update sources" diff --git a/ci-shell.nix b/ci-shell.nix new file mode 100644 index 0000000..7ae9981 --- /dev/null +++ b/ci-shell.nix @@ -0,0 +1,10 @@ +{ pkgs ? import { overlays = [ (import ./overlay.nix) ]; } }: +pkgs.mkShell { + packages = with pkgs; [ + firefox-bin + firefox-beta-bin + firefox-devedition-bin + firefox-esr-bin + firefox-nightly-bin + ]; +}