1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-05-03 20:50:13 +00:00

create build.sh to handle pull_request.yml

This commit is contained in:
Cory Smith 2022-09-29 13:39:26 -05:00
parent f2665af6fc
commit 1a3939679c
2 changed files with 15 additions and 2 deletions

13
.ci/build.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
echo From git `echo $GITHUB_SHA | sed 's/\(.......\).*$/\1/'` > internal/version.txt
./qb64_bootstrap -x -w source/qb64.bas
SUCCESS=$?
rm qb64_bootstrap
rm internal/temp/*
# rm internal/source/*
# mv internal/temp/* internal/source/
# rm internal/source/debug_* internal/source/recompile_*
# find . -type f -iname "*.a" -exec rm {} \;
# find . -type f -iname "*.o" -exec rm {} \;
exit $SUCCESS

View file

@ -14,5 +14,5 @@ jobs:
run: sudo apt update && sudo apt install libglu1-mesa-dev libncurses-dev
- name: Bootstrap compiler
run: .ci/bootstrap.sh lnx
- name: Compile
run: .ci/compile.sh
- name: Build
run: .ci/build.sh