Skip to content

Commit b505cd8

Browse files
Release 2.0.1
1 parent a03e54a commit b505cd8

File tree

166 files changed

+17415
-317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+17415
-317
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.pnp.* binary linguist-generated
2+
/.yarn/** linguist-vendored
3+
/.yarn/releases/* binary
4+
/.yarn/plugins/**/* binary

.github/dependabot.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,20 @@ updates:
77
open-pull-requests-limit: 20
88
commit-message:
99
prefix: "build"
10+
labels:
11+
- "a:chore"
12+
- "in:dependencies"
1013

11-
- package-ecosystem: npm
12-
directory: '/'
14+
- package-ecosystem: "npm"
15+
directory: "/"
1316
schedule:
14-
interval: daily
15-
time: '00:00'
17+
interval: "daily"
1618
open-pull-requests-limit: 20
1719
commit-message:
18-
prefix: build
20+
prefix: "build"
21+
ignore:
22+
- dependency-name: "@types/node"
23+
update-types: ["version-update:semver-major"]
24+
labels:
25+
- "a:chore"
26+
- "in:dependencies"

.github/workflows/ci.yml

+39-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
paths-ignore:
1313
- '**.md'
1414

15+
16+
env:
17+
workspace_artifact: build-results
18+
19+
1520
jobs:
1621
build:
1722
runs-on: ubuntu-latest
@@ -21,15 +26,17 @@ jobs:
2126
- uses: actions/setup-node@v3
2227
with:
2328
node-version: '16.x'
29+
cache: "yarn"
2430

25-
- run: npm ci
26-
27-
- run: npm run build
31+
- name: Yarn build
32+
run: yarn build
2833

2934
- uses: actions/upload-artifact@v3
3035
with:
31-
name: build-results
36+
name: ${{ env.workspace_artifact }}
3237
path: .
38+
retention-days: 1
39+
3340

3441
test-vcvarsall-invocation:
3542
name: Test Developer Command Prompt Setup (${{ matrix.arch }}) - ${{ matrix.os }}
@@ -44,7 +51,7 @@ jobs:
4451
- name: Checkout
4552
uses: actions/download-artifact@v3
4653
with:
47-
name: build-results
54+
name: ${{ env.workspace_artifact }}
4855
path: .
4956

5057
- name: setup-msvc-dev
@@ -58,6 +65,7 @@ jobs:
5865
where cl.exe
5966
IF ERRORLEVEL 1 exit ERRORLEVEL
6067
68+
6169
test-path-exports:
6270
name: Test exporting tool paths - ${{ matrix.os }}
6371
needs: build
@@ -70,7 +78,7 @@ jobs:
7078
- name: Checkout
7179
uses: actions/download-artifact@v3
7280
with:
73-
name: build-results
81+
name: ${{ env.workspace_artifact }}
7482
path: .
7583

7684
- name: setup-msvc-dev
@@ -85,4 +93,28 @@ jobs:
8593

8694
- name: 'Verify path to VS'
8795
shell: cmd
88-
run: IF NOT EXIST "%PATH_TO_VS%" exit 1
96+
run: IF NOT EXIST "%PATH_TO_VS%" exit 1
97+
98+
99+
# So, what's happening here?
100+
#
101+
# Basically, restoring the workspace state between jobs is incredibly annoying.
102+
# We can get reasonable support by using the upload-/download-artifact
103+
# actions, but they suffer from a severe limitation:
104+
# GH Actions has a storage limit and the minimum retention is 24 hours...
105+
#
106+
# Since the storage quota is limited, we have to make sure that the artifact
107+
# is removed. Unfortunately, there is no official way to do this, so we resort
108+
# to a third party action for now.
109+
#
110+
# See also: https://github.com/actions/upload-artifact/issues/290
111+
cleanup:
112+
name: Cleanup
113+
if: ${{ always() }}
114+
needs: [test-vcvarsall-invocation, test-path-exports]
115+
runs-on: ubuntu-latest
116+
steps:
117+
- name: Cleanup
118+
uses: GeekyEggo/delete-artifact@54ab544f12cdb7b71613a16a2b5a37a9ade990af
119+
with:
120+
name: ${{ env.workspace_artifact }}

.github/workflows/release.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ jobs:
1111
with:
1212
node-version: '16.x'
1313

14-
- run: npm ci
15-
16-
- run: npm run build
17-
18-
- run: npm install -g [email protected]
14+
- name: Yarn build
15+
run: yarn build
1916

2017
- run: |
2118
VERSION=`npm pkg get version`

.gitignore

+9-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
!/.idea/scopes
77
!/.idea/icon.png
88

9+
/.yarn/*
10+
!/.yarn/cache
11+
!/.yarn/patches
12+
!/.yarn/plugins
13+
!/.yarn/releases
14+
!/.yarn/sdks
15+
!/.yarn/versions
16+
917
/dist
10-
/node_modules
11-
/release
18+
/lib

0 commit comments

Comments
 (0)