Skip to content

Commit

Permalink
ci: Use self hosted runner with docker
Browse files Browse the repository at this point in the history
- Shorten tmp dir path: otherwise tests fail because a path becomes
  too long (>107 chars) for an IPC socket.
  • Loading branch information
sveitser committed Oct 19, 2023
1 parent 20fa56a commit 96ac5f3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ on:
jobs:
test:
name: Go Tests
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:js-22.04
runs-on: [self-hosted, X64]

# Creates a redis container for redis tests
services:
Expand All @@ -34,7 +36,9 @@ jobs:
submodules: true

- name: Install dependencies
run: sudo apt update && sudo apt install -y wabt gotestsum
run: >
sudo apt update && sudo apt install -y wabt gotestsum
cmake build-essential bison golang clang make wabt
- name: Setup nodejs
uses: actions/setup-node@v3
Expand Down Expand Up @@ -75,6 +79,9 @@ jobs:
toolchain: "stable"
override: true

- name: Install cbindgen
run: cargo install cbindgen

- name: Cache Build Products
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -119,7 +126,10 @@ jobs:
run: ./scripts/build-brotli.sh -w -d

- name: Build
run: make build test-go-deps -j
run: make build --debug

- name: test-go-deps
run: make test-go-deps -j

- name: Build all lint dependencies
run: make -j build-node-deps
Expand All @@ -138,7 +148,7 @@ jobs:
- name: Set environment variables
run: |
mkdir -p target/tmp/deadbeefbee
echo "TMPDIR=$(pwd)/target/tmp/deadbeefbee" >> "$GITHUB_ENV"
echo "TMPDIR=$(pwd)/target/tmp/x" >> "$GITHUB_ENV"
echo "GOMEMLIMIT=6GiB" >> "$GITHUB_ENV"
echo "GOGC=80" >> "$GITHUB_ENV"
Expand Down

0 comments on commit 96ac5f3

Please sign in to comment.