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

fix: use self hosted runners #55

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/cache-upload.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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