Skip to content

Commit 6c8cba1

Browse files
committed
Revert "poc: use build image via jobs.container"
This reverts commit 4e4277e. The custom container feature seems to have some compatibility issues and doesn't provide any additional optimization anyway
1 parent 4e4277e commit 6c8cba1

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/ci.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -103,23 +103,27 @@ jobs:
103103
os: [ubuntu-latest, buildjet-2vcpu-ubuntu-2204-arm]
104104

105105
runs-on: ${{matrix.os}}
106-
container: ghcr.io/rescript-lang/rescript-ci-build:alpine-3.20-ocaml-5.2.0-01
107106

108107
steps:
109108
- name: Checkout
110109
uses: actions/checkout@v4
111110

111+
- name: Setup Python for ninja build
112+
uses: actions/setup-python@v5
113+
with:
114+
python-version: '3.10'
115+
112116
- name: Build compiler binaries
113-
run: |
114-
opam exec -- dune build --display quiet --profile static
117+
uses: docker://ghcr.io/rescript-lang/rescript-ci-build:alpine-3.20-ocaml-5.2.0-01
118+
with:
119+
args: opam exec -- dune build --display quiet --profile static
115120

116121
- name: Build ninja binary
117-
run: |
118-
cd ninja
119-
LDFLAGS=-static python configure.py --bootstrap
120-
cd ..
122+
uses: docker://ghcr.io/rescript-lang/rescript-ci-build:alpine-3.20-ocaml-5.2.0-01
123+
with:
124+
args: sh -c "cd ninja && LDFLAGS=-static python configure.py --bootstrap"
121125

122-
- name: Upload artifacts
126+
- name: "Upload artifacts"
123127
uses: actions/upload-artifact@v4
124128
with:
125129
name: static-binaries-linux-${{runner.arch}}

0 commit comments

Comments
 (0)