Skip to content

Commit 23c2704

Browse files
committed
contrib: switch to our Guix container instead of the bundled one
1 parent 0155144 commit 23c2704

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/guix-build.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,20 @@ jobs:
3333
- name: Build Docker image
3434
uses: docker/build-push-action@v2
3535
with:
36-
context: .
37-
file: ./contrib/guix/Dockerfile
36+
context: ${{ github.workspace }}
37+
build-contexts:
38+
- docker_root:${{ github.workspace }}/contrib/guix
39+
file: ./contrib/containers/guix/Dockerfile
3840
load: true
39-
tags: alpine-guix:latest
41+
tags: guix_ubuntu:latest
4042
cache-from: type=local,src=/tmp/.buildx-cache
4143
cache-to: type=local,dest=/tmp/.buildx-cache
4244

4345
- name: Run Guix build
4446
run: |
4547
export ADDITIONAL_GUIX_COMMON_FLAGS='--max-jobs=32' && \
46-
mkdir -p depends/SDKs && \
47-
mkdir -p /tmp/guix-store && \
48-
curl -L https://bitcoincore.org/depends-sources/sdks/Xcode-12.1-12A7403-extracted-SDK-with-libcxx-headers.tar.gz | tar -xz -C depends/SDKs && \
49-
docker run --privileged -d --name guix-daemon --rm -v ${{ github.workspace }}:/dash -w /dash alpine-guix:latest && \
50-
docker exec guix-daemon bash -c "\
51-
chmod 777 /dash/depends && \
52-
git config --global --add safe.directory /dash && \
53-
cd /dash && \
54-
contrib/guix/guix-build"
48+
docker run -d --rm guix_ubuntu:latest && \
49+
docker exec guix_ubuntu bash -c "guix-start"
5550
5651
- name: Ensure build passes
5752
run: |

0 commit comments

Comments
 (0)