Skip to content

Commit

Permalink
Refactor workflows & ignore artifact folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dhonx committed May 27, 2020
1 parent fe6c363 commit f970ef8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
node-version: "8.x"

- name: Install v
- name: Install V latest
run: |
git clone https://github.com/vlang/v.git
cd v/
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Compile VSymbols
run: v ./src/vsymbols -o ./bin/vsymbols

- name: Install vsce
- name: Install VSCE
run: npm install --global vsce

- name: Install dependencies
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Running Webpack
run: npm run webpack

- name: Do Package
- name: Create package
run: vsce package

build-windows-gcc:
Expand All @@ -44,23 +44,23 @@ jobs:
with:
node-version: "8.x"

- name: Install V
- name: Install V latest
run: |
git clone https://github.com/vlang/v.git d:\v
cd d:\v
.\make.bat -gcc
.\v symlink
echo "::add-path::d:\v"
- name: Verify v is in path
- name: Verify V is in path
run: |
pwd
v version
- name: Compile VSymbols
run: v .\src\vsymbols -o .\bin\vsymbols

- name: Install vsce
- name: Install VSCE
run: npm install --global vsce

- name: Install dependencies
Expand All @@ -69,7 +69,7 @@ jobs:
- name: Running Webpack
run: npm run webpack

- name: Do Package
- name: Create package
run: vsce package

build-macos:
Expand All @@ -85,7 +85,7 @@ jobs:
with:
node-version: "8.x"

- name: Install v
- name: Install V latest
run: |
git clone https://github.com/vlang/v.git
cd v/
Expand All @@ -95,7 +95,7 @@ jobs:
- name: Compile VSymbols
run: v ./src/vsymbols -o ./bin/vsymbols

- name: Install vsce
- name: Install VSCE
run: npm install --global vsce

- name: Install dependencies
Expand All @@ -104,5 +104,5 @@ jobs:
- name: Running Webpack
run: npm run webpack

- name: Do Package
- name: Create package
run: vsce package
21 changes: 15 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set release version to env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}

- name: Install V
- name: Install V latest
run: |
git clone https://github.com/vlang/v.git
cd v/
Expand All @@ -27,12 +27,15 @@ jobs:
- name: Compile VSymbols
run: v -prod ./src/vsymbols -o ./bin/vsymbols

- name: Install vsce
- name: Install VSCE
run: npm install --global vsce

- name: Install dependencies
run: npm install

- name: NPM version
run: npm version ${{ env.RELEASE_VERSION }}

- name: Create package
run: vsce package

Expand All @@ -58,7 +61,7 @@ jobs:
- name: Set release version to env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}

- name: Install V
- name: Install V latest
run: |
git clone https://github.com/vlang/v.git d:\v
cd d:\v
Expand All @@ -74,12 +77,15 @@ jobs:
- name: Compile VSymbols
run: v -prod ./src/vsymbols -o ./bin/vsymbols

- name: Install vsce
- name: Install VSCE
run: npm install --global vsce

- name: Install dependencies
run: npm install

- name: NPM version
run: npm version ${{ env.RELEASE_VERSION }}

- name: Create package
run: vsce package

Expand Down Expand Up @@ -109,7 +115,7 @@ jobs:
- name: Set release version to env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}

- name: Install V
- name: Install V latest
run: |
git clone https://github.com/vlang/v.git
cd v/
Expand All @@ -119,12 +125,15 @@ jobs:
- name: Compile VSymbols
run: v -prod ./src/vsymbols -o ./bin/vsymbols

- name: Install vsce
- name: Install VSCE
run: npm install --global vsce

- name: Install dependencies
run: npm install

- name: NPM version
run: npm version ${{ env.RELEASE_VERSION }}

- name: Create package
run: vsce package

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ out
input.json
bin/vsymbols
test.v
artifact/
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ tsconfig.json
./scripts/minify_json.js
./scripts/rename.js
webpack.config.js
artifact/
v

0 comments on commit f970ef8

Please sign in to comment.