From 0f3a367d27c909b803baf0185d0b6e0ade968c3a Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 6 Sep 2023 18:51:30 -0400 Subject: flake: start using flake-parts + add vm test --- .github/workflows/ci.yaml | 18 ++++++++++++++++++ .github/workflows/update-lock.yaml | 26 ++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/update-lock.yaml (limited to '.github/workflows') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..121e120 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,18 @@ +name: ci + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + + - run: nix build -L .#tests.x86_64-linux.module diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml new file mode 100644 index 0000000..6ab7eb7 --- /dev/null +++ b/.github/workflows/update-lock.yaml @@ -0,0 +1,26 @@ +name: update flake lock + +on: + schedule: + - cron: "0 0 * * 6" + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + + permissions: + contents: write + pull-requests: write + + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + + - name: update lockfile + uses: DeterminateSystems/update-flake-lock@v20 + id: update + with: + commit-msg: "flake: update inputs" + pr-title: "flake: update inputs" + token: ${{ github.token }} -- cgit v1.2.3