Skip to content

Commit

Permalink
Add compil
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Jan 29, 2024
1 parent 8b69c7f commit a769649
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/compil.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Compil

on: [push]

jobs:
compil-windows:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Deps
run: ./scripts/InstallDeps.ps1

- name: Compil
run: .\deps\v-master\v run .\scripts\build.vsh

- name: Upload Binary Artifact
uses: actions/upload-artifact@v3
with:
name: dg.exe
path: ./dg.exe

ubuntu-latest:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Deps
run: ./scripts/InstallDeps.sh

- name: Compil
run: ./deps/v-master/v run ./scripts/build.vsh

- name: Upload Binary Artifact
uses: actions/upload-artifact@v3
with:
name: dg-linux
path: ./dg

macos-latest:
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Deps
run: ./scripts/InstallDeps.sh

- name: Compil
run: ./deps/v-master/v run ./scripts/build.vsh

- name: Upload Binary Artifact
uses: actions/upload-artifact@v3
with:
name: dg-macos
path: ./dg
10 changes: 10 additions & 0 deletions scripts/installDeps.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/pwsh

rm -Recurse -Force "./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 -Force ".\deps\vlang.zip"

cd ".\deps\v-master"
.\make.bat
cd ".\..\.."

0 comments on commit a769649

Please sign in to comment.