chore(ci): Move to Forgejo Actions
This commit is contained in:
parent
e568419bda
commit
88d19c8d74
3 changed files with 52 additions and 39 deletions
|
@ -4,26 +4,26 @@ on:
|
|||
push:
|
||||
branches: ['master']
|
||||
schedule:
|
||||
- cron: '10 8 * * *'
|
||||
workflow_dispatch:
|
||||
- cron: '20 2 * * *'
|
||||
|
||||
jobs:
|
||||
build-x86_64-linux:
|
||||
runs-on: ubuntu-latest
|
||||
build-amd64-linux:
|
||||
runs-on: ubuntu-latest-amd64
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Check Flake
|
||||
uses: DeterminateSystems/flake-checker-action@v5
|
||||
with:
|
||||
send-statistics: false
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v4
|
||||
- name: Run the Magic Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@v1
|
||||
- uses: cachix/cachix-action@v12
|
||||
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
|
||||
with:
|
||||
name: nifoc
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
init: none
|
||||
planner: linux
|
||||
github-token: null
|
||||
- name: Setup Attic
|
||||
uses: https://github.com/ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
cache: ${{ secrets.ATTIC_CACHE }}
|
||||
token: ${{ secrets.ATTIC_TOKEN }}
|
||||
- run: nix build '.#anonymous-overflow'
|
||||
- run: nix build '.#fennel-ls'
|
||||
- run: nix build '.#lexical'
|
||||
|
@ -37,15 +37,22 @@ jobs:
|
|||
- run: nix build '.#website-docs-nifoc-pw'
|
||||
|
||||
build-arm64-linux:
|
||||
runs-on: buildjet-2vcpu-ubuntu-2204-arm
|
||||
runs-on: ubuntu-latest-arm64
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v4
|
||||
- uses: cachix/cachix-action@v12
|
||||
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
|
||||
with:
|
||||
name: nifoc
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
init: none
|
||||
planner: linux
|
||||
github-token: null
|
||||
- name: Setup Attic
|
||||
uses: https://github.com/ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
cache: ${{ secrets.ATTIC_CACHE }}
|
||||
token: ${{ secrets.ATTIC_TOKEN }}
|
||||
- run: nix build '.#fennel-ls'
|
||||
- run: nix build '.#lexical'
|
||||
- run: nix build '.#neovim-nightly'
|
26
.forgejo/workflows/update-flake.yml
Normal file
26
.forgejo/workflows/update-flake.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Update Flake
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-flake:
|
||||
runs-on: ubuntu-latest-amd64
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Nix
|
||||
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
|
||||
with:
|
||||
init: none
|
||||
planner: linux
|
||||
github-token: null
|
||||
- run: nix flake update
|
||||
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "[automation] Update flake"
|
20
.github/workflows/update-flake.yml
vendored
20
.github/workflows/update-flake.yml
vendored
|
@ -1,20 +0,0 @@
|
|||
name: Update Flake
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 8 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update-flake:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install Nix
|
||||
uses: DeterminateSystems/nix-installer-action@v4
|
||||
- name: Run the Magic Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@v1
|
||||
- run: nix flake update
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "[automation] Update flake"
|
Loading…
Reference in a new issue