From 74fbe0380cd453ef89d1c1b07909c360037538d3 Mon Sep 17 00:00:00 2001 From: Carter Date: Sun, 13 Aug 2023 05:24:52 -0600 Subject: [PATCH] feat: vlang (#26) * feat: vlang * ci: prod build --- .github/workflows/ci.yml | 29 ++++++++++++++++++++++++++++- v/hello.v | 1 + 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 v/hello.v diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fadc8f..c488ca6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -435,6 +435,33 @@ jobs: swift/swiftCore.dll swift/info.txt + build_v: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Install V + uses: vlang/setup-v@v1 + with: + check-latest: true + - name: Build + shell: pwsh + run: | + cd v + v -prod ./hello.v + v --version + $info = @( + "LANGUAGE=V" + "COMPILER=$(v --version)" + ) + $info | Out-File -FilePath info.txt -Encoding ascii + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: v + path: | + v/hello.exe + v/info.txt + build_zig: runs-on: windows-latest steps: @@ -459,7 +486,7 @@ jobs: zig/info.txt summarize: - needs: [build_asm, build_c, build_cpp, build_crystal, build_csharp, build_d, build_dart, build_fsharp, build_go, build_haskell, build_java, build_kotlin, build_nim, build_rust, build_scala, build_swift, build_zig] + needs: [build_asm, build_c, build_cpp, build_crystal, build_csharp, build_d, build_dart, build_fsharp, build_go, build_haskell, build_java, build_kotlin, build_nim, build_rust, build_scala, build_swift, build_v, build_zig] runs-on: windows-latest steps: - name: Download all artifacts diff --git a/v/hello.v b/v/hello.v new file mode 100644 index 0000000..fb96416 --- /dev/null +++ b/v/hello.v @@ -0,0 +1 @@ +println('Hello, World!')