Skip to content

Commit 5e750c4

Browse files
authored
Merge pull request #101 from dfinity/igor/revert-build
Use privileged container
2 parents 185d398 + 90d922a commit 5e750c4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
runs-on: dind-small
1414
container:
1515
image: ghcr.io/catthehacker/ubuntu:rust-24.04@sha256:6937166dd5be0b42eef5a43f71da14e22d766b42c9238b59953c27f34c40b338
16+
options: --privileged
1617

1718
permissions:
1819
contents: write
@@ -29,11 +30,8 @@ jobs:
2930
- name: Install deps
3031
run: sudo apt-get update && sudo apt-get -y install protobuf-compiler podman
3132

32-
- name: Allow user namespace creation
33-
run: sudo sysctl kernel.apparmor_restrict_unprivileged_userns=0
34-
3533
- name: Build
36-
run: sudo repro-env build -- cargo build --release --target x86_64-unknown-linux-musl
34+
run: repro-env build -- cargo build --release --target x86_64-unknown-linux-musl
3735

3836
- name: Generate SHA checksum
3937
run: shasum target/x86_64-unknown-linux-musl/release/ic-gateway > ic-gateway.shasum
@@ -42,7 +40,7 @@ jobs:
4240
run: rm -rf target
4341

4442
- name: Build again
45-
run: sudo repro-env build -- cargo build --release --target x86_64-unknown-linux-musl
43+
run: repro-env build -- cargo build --release --target x86_64-unknown-linux-musl
4644

4745
- name: Check SHA checksum
4846
run: shasum -c ic-gateway.shasum

0 commit comments

Comments
 (0)