Skip to content

Commit 4e4277e

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

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -103,27 +103,23 @@ 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
109110
uses: actions/checkout@v4
110111

111-
- name: Setup Python for ninja build
112-
uses: actions/setup-python@v5
113-
with:
114-
python-version: '3.10'
115-
116112
- 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
113+
run: |
114+
opam exec -- dune build --display quiet --profile static
120115
121116
- 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"
117+
run: |
118+
cd ninja
119+
LDFLAGS=-static python configure.py --bootstrap
120+
cd ..
125121
126-
- name: "Upload artifacts"
122+
- name: Upload artifacts
127123
uses: actions/upload-artifact@v4
128124
with:
129125
name: static-binaries-linux-${{runner.arch}}

0 commit comments

Comments
 (0)