22
22
arch : amd64
23
23
- runner : arm-runner
24
24
arch : arm64
25
+ - runner : macos-latest
26
+ arch : arm64
25
27
runs-on : ${{ matrix.runner }}
26
28
27
29
steps :
@@ -45,17 +47,32 @@ jobs:
45
47
env :
46
48
NIX_SIGN_SECRET_KEY : ${{ secrets.NIX_SIGN_SECRET_KEY }}
47
49
- name : Log in to Docker Hub
50
+ if : matrix.runner != 'macos-latest'
48
51
uses : docker/login-action@v2
49
52
with :
50
53
username : ${{ secrets.DOCKER_USERNAME }}
51
54
password : ${{ secrets.DOCKER_PASSWORD }}
52
55
- name : Build psql bundle with nix
56
+ if : matrix.runner != 'macos-latest'
53
57
run : docker build -t base_nix -f docker/nix/Dockerfile .
54
58
- name : Run build psql bundle
59
+ if : matrix.runner != 'macos-latest'
55
60
run : |
56
61
docker run -e AWS_ACCESS_KEY_ID=${{ env.AWS_ACCESS_KEY_ID }} \
57
62
-e AWS_SECRET_ACCESS_KEY=${{ env.AWS_SECRET_ACCESS_KEY }} \
58
63
-e AWS_SESSION_TOKEN=${{ env.AWS_SESSION_TOKEN }} \
59
64
base_nix bash -c "./workspace/docker/nix/build_nix.sh"
65
+ - name : Build psql bundle on macos
66
+ if : matrix.runner == 'macos-latest'
67
+ run : |
68
+ # Replace this with your actual build script
69
+ cp ./workspace/docker/nix/build_nix.sh ./build_nix.sh
70
+ sed -i 's/cd workspace//g' ./build_nix.sh
71
+ ./build_nix.sh
72
+ env :
73
+ AWS_ACCESS_KEY_ID : ${{ env.AWS_ACCESS_KEY_ID }}
74
+ AWS_SECRET_ACCESS_KEY : ${{ env.AWS_SECRET_ACCESS_KEY }}
75
+ AWS_SESSION_TOKEN : ${{ env.AWS_SESSION_TOKEN }}
76
+
60
77
name : build psql bundle on ${{ matrix.arch }}
61
78
0 commit comments