Skip to content

Commit

Permalink
chore(ci): Use self-hosted runner (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
srid authored Jun 13, 2024
1 parent be67d85 commit 68f06c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@ on:
pull_request:
jobs:
code:
runs-on: macos-14
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.garnix.io?priority=41 https://cache.nixos.org/
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: yaxitech/nix-install-pkgs-action@v3
with:
packages: "github:srid/nixci"
- run: nixci build
10 changes: 2 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@ on:
pull_request:
jobs:
emanote:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.garnix.io?priority=41 https://cache.nixos.org/
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Build the website (Nix) 🔧
run: |
nix build -j 4
Expand Down

0 comments on commit 68f06c1

Please sign in to comment.