Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Commit

Permalink
Fix macos build (#4)
Browse files Browse the repository at this point in the history
* Fix macos build

* WORKFLOW_COMMIT - update dist/index.js [skip ci]

* Add tests on macOs and Windows

Co-authored-by: BOT_WORKFLOW <bot@nocturlab.fr>
  • Loading branch information
shiipou and BOT_WORKFLOW committed Mar 21, 2020
1 parent d594fed commit 1e5a500
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,35 @@ jobs:
git push
continue-on-error: true

- name: Set up VLang version master
uses: ./
with:
v-version: latest
id: v
- name: Test V is present
run: v version

run-macos:
name: Run MacOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up VLang version master
uses: ./
with:
v-version: latest
id: v

- name: Test V is present
run: v version

run-windows:
name: Run Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up VLang version master
uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4672,7 +4672,7 @@ function download_v(v_version) {
try {
// extract
console.log('Extracting VLang...');
ext_path = yield tc.extractZip(download_path, '/home/runner/work/_temp/vlang');
ext_path = yield tc.extractZip(download_path, './.vlang_tmp_build');
console.log(`VLang extracted to ${ext_path}`);
// extracts with a root folder that matches the fileName downloaded
console.log(`Add VLang to cache`);
Expand Down
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function download_v(v_version: string): Promise<string | undefined>
try {
// extract
console.log('Extracting VLang...');
ext_path = await tc.extractZip(download_path, '/home/runner/work/_temp/vlang');
ext_path = await tc.extractZip(download_path, './.vlang_tmp_build');
console.log(`VLang extracted to ${ext_path}`);

// extracts with a root folder that matches the fileName downloaded
Expand Down

0 comments on commit 1e5a500

Please sign in to comment.