diff --git a/.github/workflows/test-ghcup.yaml b/.github/workflows/test-ghcup.yaml index 64c3427..0a4bfba 100644 --- a/.github/workflows/test-ghcup.yaml +++ b/.github/workflows/test-ghcup.yaml @@ -62,6 +62,9 @@ jobs: runs-on: ubuntu-20.04 container: image: debian:12 + env: + DEBIAN_FRONTEND: noninteractive + TZ: Asia/Singapore steps: - run: | apt-get update @@ -87,7 +90,6 @@ jobs: - run: which cabal - run: cabal --version - vanilla-channel: strategy: matrix: @@ -163,3 +165,21 @@ jobs: run: | cat $(stack path --stack-root)/hooks/ghc-install.sh shell: bash + + make: + runs-on: ubuntu-latest + container: + image: rockylinux:9 + steps: + - run: | + dnf install -y git nodejs make + - uses: actions/checkout@v4 + - run: | + set -eux + pushd ghcup + npx bun install + BUN="npx bun" make + popd + git config --global --add safe.directory $PWD + git status + git diff --exit-code diff --git a/ghcup/Makefile b/ghcup/Makefile index ab88831..d42e84d 100644 --- a/ghcup/Makefile +++ b/ghcup/Makefile @@ -1,3 +1,6 @@ .PHONY: dist/index.js + +BUN ?= bun + dist/index.js: - bun build --target=node --minify --outfile=$@ src/index.ts + $(BUN) build --target=node --minify --outfile=$@ src/index.ts