diff --git a/.github/actions/nix_tmpfs/action.yml b/.github/actions/nix_tmpfs/action.yml new file mode 100644 index 0000000000..1b194cfd74 --- /dev/null +++ b/.github/actions/nix_tmpfs/action.yml @@ -0,0 +1,13 @@ +name: use tmpfs for nix builds +description: Set Nix' build directory to a tmpfs to fix builds that don't work in the runner-provisioned ext2/ext3 filesystem + +runs: + using: "composite" + steps: + - name: use tmpfs for nix builds + shell: bash + run: | + sudo mkdir -p /etc/systemd/system/nix-daemon.service.d + echo -e "[Service]\nEnvironment=TMPDIR=/dev/shm" | sudo tee /etc/systemd/system/nix-daemon.service.d/tmpfs.conf + sudo systemctl daemon-reload + sudo systemctl restart nix-daemon diff --git a/.github/workflows/e2e_openssl.yml b/.github/workflows/e2e_openssl.yml index 11185a7e5b..13f4e266e4 100644 --- a/.github/workflows/e2e_openssl.yml +++ b/.github/workflows/e2e_openssl.yml @@ -57,6 +57,7 @@ jobs: echo "SYNC_ENDPOINT=http://$sync_ip:8080" | tee -a "$GITHUB_ENV" sync_uuid=$(kubectl get configmap sync-server-fifo -o jsonpath='{.data.uuid}') echo "SYNC_FIFO_UUID=$sync_uuid" | tee -a "$GITHUB_ENV" + - uses: ./.github/actions/nix_tmpfs - name: Build and prepare deployments run: | just coordinator initializer openssl port-forwarder node-installer diff --git a/.github/workflows/e2e_policy.yml b/.github/workflows/e2e_policy.yml index 3461331dd0..ed0fff850b 100644 --- a/.github/workflows/e2e_policy.yml +++ b/.github/workflows/e2e_policy.yml @@ -57,6 +57,7 @@ jobs: echo "SYNC_ENDPOINT=http://$sync_ip:8080" | tee -a "$GITHUB_ENV" sync_uuid=$(kubectl get configmap sync-server-fifo -o jsonpath='{.data.uuid}') echo "SYNC_FIFO_UUID=$sync_uuid" | tee -a "$GITHUB_ENV" + - uses: ./.github/actions/nix_tmpfs - name: Build and prepare deployments run: | just coordinator initializer openssl port-forwarder node-installer diff --git a/.github/workflows/e2e_regression.yml b/.github/workflows/e2e_regression.yml index 741537dd2b..3716522f9a 100644 --- a/.github/workflows/e2e_regression.yml +++ b/.github/workflows/e2e_regression.yml @@ -58,6 +58,7 @@ jobs: - name: Get credentials for CI cluster run: | just get-credentials + - uses: ./.github/actions/nix_tmpfs - name: Build and prepare deployments run: | just node-installer diff --git a/.github/workflows/e2e_servicemesh.yml b/.github/workflows/e2e_servicemesh.yml index 01f5f8e7e7..3bcc58756f 100644 --- a/.github/workflows/e2e_servicemesh.yml +++ b/.github/workflows/e2e_servicemesh.yml @@ -51,12 +51,13 @@ jobs: - name: Get credentials for CI cluster run: | just get-credentials - - name: Set sync environemnt + - name: Set sync environment run: | sync_ip=$(kubectl get svc sync -o jsonpath='{.status.loadBalancer.ingress[0].ip}') echo "SYNC_ENDPOINT=http://$sync_ip:8080" | tee -a "$GITHUB_ENV" sync_uuid=$(kubectl get configmap sync-server-fifo -o jsonpath='{.data.uuid}') echo "SYNC_FIFO_UUID=$sync_uuid" | tee -a "$GITHUB_ENV" + - uses: ./.github/actions/nix_tmpfs - name: Build and prepare deployments run: | just coordinator initializer port-forwarder service-mesh-proxy node-installer