Skip to content

Commit c872023

Browse files
committed
Alpine build: run individual steps in Docker container
1 parent 6cb8471 commit c872023

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,21 @@ jobs:
3333

3434
runs-on: ${{matrix.os}}
3535

36-
container:
37-
image: ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-4.14.1-02
38-
3936
steps:
40-
# See https://github.com/actions/runner/issues/801#issuecomment-1374967227.
41-
- name: Workaround for Github actions runner on Alpine arm64
42-
if: runner.arch == 'ARM64'
43-
run: sed -i "s:ID=alpine:ID=NotpineForGHA:" /etc/os-release
44-
4537
- name: Checkout
4638
uses: actions/checkout@v3
4739

4840
- name: Build compiler binaries
49-
run: opam exec -- dune build --display quiet --profile static
41+
uses: docker://ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-4.14.1-02
42+
with:
43+
args: opam exec -- dune build --display quiet --profile static
5044

5145
- name: Build ninja binary
52-
working-directory: ninja
46+
uses: docker://ghcr.io/rescript-lang/rescript-ci-build:alpine-3.19-ocaml-4.14.1-02
5347
env:
5448
LDFLAGS: -static
55-
run: python3 configure.py --bootstrap --verbose
49+
with:
50+
args: sh -c "cd ninja && LDFLAGS=-static python3 configure.py --bootstrap"
5651

5752
- name: "Upload artifacts"
5853
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)