diff options
| author | seth <[email protected]> | 2023-12-18 01:28:42 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-18 02:18:35 -0500 |
| commit | 8faa242f21648e52a6bbdfa803fd4ea1b0e347e0 (patch) | |
| tree | eff6694cefb2f821bf19b0d8cb3d97bf48cb15b9 /.github/workflows | |
| parent | 9fe8afd0c5f2b439176728d8863570bf22614dbd (diff) | |
port to nixvim
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yaml | 18 | ||||
| -rw-r--r-- | .github/workflows/flakehub-publish.yaml | 24 | ||||
| -rw-r--r-- | .github/workflows/update-lock.yaml | 30 |
3 files changed, 65 insertions, 7 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 36e806e..5beff00 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,7 @@ name: CI on: push: - branches: ["main"] + branches: [main] pull_request: workflow_dispatch: @@ -10,14 +10,17 @@ jobs: build: strategy: matrix: - os: [macos-latest] include: + - os: macos-latest + arch: x86_64 + - os: ubuntu-latest - arch: "x86_64" + arch: x86_64 - os: ubuntu-latest - arch: "aarch64" + arch: aarch64 + name: Build (${{ matrix.os }}/${{ matrix.arch }}) runs-on: ${{ matrix.os }} continue-on-error: true @@ -47,11 +50,12 @@ jobs: if: matrix.arch != 'aarch64' run: nix build -L - - name: Run ARM build + - name: Run build if: matrix.arch == 'aarch64' - run: nix build -Lv .#packages.${{ matrix.arch }}-linux.default + run: nix build -L .#packages.${{ matrix.arch }}-linux.default check: + name: Check flake runs-on: ubuntu-latest steps: @@ -64,4 +68,4 @@ jobs: uses: DeterminateSystems/magic-nix-cache-action@v2 - name: Run check - run: nix flake check --show-trace + run: nix flake check -L --show-trace diff --git a/.github/workflows/flakehub-publish.yaml b/.github/workflows/flakehub-publish.yaml new file mode 100644 index 0000000..5b920d6 --- /dev/null +++ b/.github/workflows/flakehub-publish.yaml @@ -0,0 +1,24 @@ +name: Flakehub publish + +on: + push: + branches: [main] + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + id-token: write + + steps: + - uses: actions/checkout@v4 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v9 + + - name: Push to Flakehub + uses: DeterminateSystems/flakehub-push@v3 + with: + visibility: "public" + rolling: true diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml new file mode 100644 index 0000000..8c14410 --- /dev/null +++ b/.github/workflows/update-lock.yaml @@ -0,0 +1,30 @@ +name: Update flake.lock + +on: + schedule: + # run every saturday at 0:00 utc + - cron: "0 0 * * 6" + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v9 + + - name: Update lockfile & make PR + uses: DeterminateSystems/update-flake-lock@v20 + id: update + with: + token: ${{ secrets.MERGE_TOKEN }} + + - name: Enable auto-merge + shell: bash + run: gh pr merge --auto --rebase "$PR_ID" + env: + GITHUB_TOKEN: ${{ secrets.MERGE_TOKEN }} + PR_ID: ${{ steps.update.outputs.pull-request-number }} |
