Skip to content

Commit e02c3e9

Browse files
committed
poc: use build image via jobs.container
1 parent ca20214 commit e02c3e9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/ci.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ 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
106107

107108
steps:
108109
- name: Checkout
@@ -114,16 +115,16 @@ jobs:
114115
python-version: '3.10'
115116

116117
- name: Build compiler binaries
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
118+
run: |
119+
opam exec -- dune build --display quiet --profile static
120120
121121
- name: Build ninja binary
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"
122+
run: |
123+
cd ninja
124+
LDFLAGS=-static python configure.py --bootstrap
125+
cd ..
125126
126-
- name: "Upload artifacts"
127+
- name: Upload artifacts
127128
uses: actions/upload-artifact@v4
128129
with:
129130
name: static-binaries-linux-${{runner.arch}}

0 commit comments

Comments
 (0)