Skip to content

Commit

Permalink
Add alternativ
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Jan 29, 2024
1 parent 1657662 commit 326ac03
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/compil.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install package
run: sudo apt-get install -y build-essential make curl unzip

- name: Install Deps
run: ./scripts/installDeps.sh
run: ./scripts/installDeps.sh useSystem

- name: Compil
run: ./deps/v-master/v run ./scripts/build.vsh
Expand Down
19 changes: 15 additions & 4 deletions scripts/installDeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,21 @@
# ./deps/cosmocc-bin/unzip.exe "./deps/cosmocc.zip" -d "./deps/cosmocc"
# rm "./deps/cosmocc.zip"

CURL="./deps/cosmocc-bin/curl.exe"
UNZIP="./deps/cosmocc-bin/unzip.exe"
MAKE="./deps/cosmocc-bin/make.exe"

rm -rf "./deps/v-master"
./deps/cosmocc-bin/curl.exe -sSLfo "./deps/vlang.zip" "https://github.com/vlang/v/archive/refs/heads/master.zip"
./deps/cosmocc-bin/unzip.exe "./deps/vlang.zip" -d "./deps"
rm "./deps/vlang.zip"
if [ "$1" == "useSystem" ]; then
CURL="curl"
UNZIP="unzip"
MAKE="make"
fi

$CURL -sSLfo "./deps/vlang.zip" "https://github.com/vlang/v/archive/refs/heads/master.zip"
$UNZIP "./deps/vlang.zip" -d "./deps"

./deps/cosmocc-bin/make.exe \
$MAKE \
-C "./deps/v-master"

rm "./deps/vlang.zip"

0 comments on commit 326ac03

Please sign in to comment.