Skip to content

Commit 7a5ee8f

Browse files
committed
add building nobuild config
1 parent 606a196 commit 7a5ee8f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,25 @@ jobs:
134134
needs: build-apperl
135135
strategy:
136136
matrix:
137-
os: [ubuntu-latest, windows-latest]
137+
os: [ubuntu-latest] #, windows-latest]
138138
runs-on: ${{ matrix.os }}
139139
steps:
140140
- name: Fetch build artifacts
141141
uses: actions/download-artifact@v3
142+
- name: support ape bins
143+
run: sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
142144
- name: Try nobuild build
143145
run: |
144146
ls -la
145147
mkdir src
146148
cp full/perl.com src/
149+
printf "%s\n" 'print "Hello, World!\n";' > src/hello
150+
echo '{"defaultconfig":"hello","apperl_configs":{"hello":{"dest":"hello.com","base":"nobuild-v0.1.0","zip_extra_files":{"bin":["src/hello"]}}}}' > apperl-project.json
151+
chmod +x src/perl.com
147152
src/perl.com /zip/bin/apperlm list
148-
src/perl.com /zip/bin/apperlm checkout nobuild-v0.1.0
149153
src/perl.com /zip/bin/apperlm build
150154
ls -la
151-
./perl.com -v
155+
./hello.com -v
152156
153157
create-release:
154158
name: Create release

0 commit comments

Comments
 (0)