Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
fix: use self hosted runners
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Apr 9, 2024
1 parent 43ead9f commit a24cd8d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/cache-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
matrix:
include:
- runner: [self-hosted, X64]
arch: amd64
- runner: [self-hosted, arm-runner]
arch: arm64
runs-on: ${{ matrix.runner }}
name: nix-build
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
Expand All @@ -40,7 +46,7 @@ jobs:

- name: build and copy to S3
run: |
for x in 15 16 orioledb_16; do
for x in 15; do
nix build .#psql_$x/bin -o result-$x
done
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./result*
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
- name: Push image to the Container registry
run: |
set -x
for x in 15 16 orioledb_16; do
for x in 15; do
nix build .#psql_$x/docker.copyToRegistry
done
11 changes: 7 additions & 4 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
cmd: [ "nix flake check -L --show-trace", "nix run nixpkgs#just -- build-all" ]
runs-on: ${{ matrix.os }}
include:
- runner: [self-hosted, X64]
arch: amd64
- runner: [self-hosted, arm-runner]
arch: arm64
runs-on: ${{ matrix.runner }}
name: nix-build
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@65d7c888b2778e8cf30a07a88422ccb23499bfb8
- uses: DeterminateSystems/magic-nix-cache-action@749fc5bbc9fa49d60c2b93f6c4bc867b82e1d295
- run: ${{ matrix.cmd }}
- run: [ "nix flake check -L --show-trace", "nix run nixpkgs#just -- build-all" ]
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ alias c := check

build-all:
nix build .#psql_15/bin .#psql_15/docker
nix build .#psql_16/bin .#psql_16/docker
nix build .#psql_orioledb_16/bin .#psql_orioledb_16/docker
# nix build .#psql_16/bin .#psql_16/docker
# nix build .#psql_orioledb_16/bin .#psql_orioledb_16/docker

check:
nix flake check -L

0 comments on commit a24cd8d

Please sign in to comment.