File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed
Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ COPY ./brewkit /work/brewkit
77COPY ./deno.jsonc /work/deno.jsonc
88COPY ./deno.lock /work/deno.lock
99RUN cd /work && find ./brewkit -name \* .ts | xargs pkgx deno cache
10+ RUN pkgx deno cache /work/.github/scripts/generate-versions
1011
1112FROM debian:buster-slim AS stage2
1213COPY --from=stage1 /usr/local/bin/pkgx /usr/local/bin/pkgx
Original file line number Diff line number Diff line change 1414
1515 "$PWD\\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
1616
17- Get-ChildItem -Path brewkit -Recurse -Filter *.ts | ForEach-Object { .\\bin\\pkgx deno -q cache $_.FullName }
17+ Get-ChildItem -Path brewkit .github/scripts/generate-versions -Recurse -Filter *.ts | ForEach-Object { .\\bin\\pkgx deno -q cache $_.FullName }
1818 shell: pwsh
1919 if: runner.os == 'Windows'
2020
@@ -24,18 +24,15 @@ runs:
2424 # $HOME is different in the docker image vs. github actions
2525 ln -s /root/.pkgx $HOME
2626 ln -s /root/.cache $HOME
27- ./bin/pkg-convert
2827 ;;
2928 Darwin)
3029 curl https://pkgx.sh/$(uname)/$(uname -m).tgz | sudo tar xz -C /usr/local/bin
31- find brewkit .github -name \*.ts | xargs pkgx deno^2 --quiet cache
32- ./bin/pkg-convert
33- ;;
34- *)
35- # must be GNU make inside git-bash on Windows
36- make -f ./bin/pkg-convert
30+ find brewkit -name \*.ts | xargs pkgx deno^2 --quiet cache
31+ pkgx deno^2 --quiet cache .github/scripts/generate-versions
3732 ;;
3833 esac
3934
35+ ./bin/pkg-convert
36+
4037 echo "$PWD/bin" >> $GITHUB_PATH
4138 shell: bash
Original file line number Diff line number Diff line change 33
44set SCRIPT_DIR = %~dp0
55
6- pkgx -q deno run --ext=ts --quiet --allow-net --allow-read --allow-env --allow-sys " %SCRIPT_DIR% pkg-build " %*
6+ pkgx -q deno run --ext=ts --quiet --allow-net --allow-read --allow-env --allow-sys " %SCRIPT_DIR% generate-versions " %*
77if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
88
99endlocal
Original file line number Diff line number Diff line change @@ -6,16 +6,12 @@ SRCROOT := $(abspath $(MAKEFILE_DIR)/..)
66PKG_FILES := $(shell find $(SRCROOT)/projects -name package.yml)
77OUTPUTS := $(PKG_FILES:$(SRCROOT)/projects/%=$(SRCROOT)/artifacts/pantry/projects/%)
88
9- # ifeq ($(OS),Windows_NT)
10- # DENO := deno.exe run -R --ext=ts
11- # endif
12-
139all: $(OUTPUTS)
1410
1511# Rule to process each package.yml file
1612$(SRCROOT)/artifacts/pantry/projects/%: $(SRCROOT)/projects/%
1713 @mkdir -p $(dir $@)
18- $(DENO) $( SRCROOT)/bin/pkg-convert-project "$<" > "$@"
14+ $(SRCROOT)/bin/pkg-convert-project "$<" > "$@"
1915
2016debug:
2117 @echo "PKG_FILES: $(PKG_FILES)"
You can’t perform that action at this time.
0 commit comments