@@ -15,11 +15,11 @@ concurrency:
1515 cancel-in-progress : true
1616
1717jobs :
18- static-analysis :
18+ build :
1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout
22- uses : actions/checkout@v3
22+ uses : actions/checkout@v4
2323
2424 - name : Setup
2525 uses : ./.github/actions/setup
@@ -36,42 +36,56 @@ jobs:
3636 - name : Typecheck files
3737 run : yarn tsc
3838
39- test :
40- runs-on : macos-latest
41- steps :
42- - name : Checkout
43- uses : actions/checkout@v3
44-
45- - name : Setup
46- uses : ./.github/actions/setup
47- with :
48- github_token : ${{ secrets.GITHUB_TOKEN }}
49-
50- - name : Install Chrome
51- run : npx puppeteer browsers install chrome
39+ - name : Build
40+ working-directory : packages/webgpu
41+ run : yarn build
5242
53- - name : Run reference test suite
43+ - name : Package
5444 working-directory : packages/webgpu
55- run : yarn test:ref
45+ run : yarn pack
5646
57- - name : Build package
58- run : yarn build
47+ - name : Upload package artifact
48+ uses : actions/upload-artifact@v4
49+ with :
50+ name : package
51+ path : packages/webgpu/package.tgz
52+ compression-level : 0
53+
54+ # These are disabled since they are not useful in the context of
55+ # GitHub Actions CI and they slow down the workflow significantly.
56+ # test:
57+ # runs-on: macos-latest
58+ # steps:
59+ # - name: Checkout
60+ # uses: actions/checkout@v4
61+
62+ # - name: Setup
63+ # uses: ./.github/actions/setup
64+ # with:
65+ # github_token: ${{ secrets.GITHUB_TOKEN }}
66+
67+ # - name: Install Chrome
68+ # run: npx puppeteer browsers install chrome
69+
70+ # - name: Run reference test suite
71+ # working-directory: packages/webgpu
72+ # run: yarn test:ref
5973
6074 build-android :
6175 runs-on : macos-latest
6276 env :
6377 TURBO_CACHE_DIR : .turbo/android
6478 steps :
6579 - name : Checkout
66- uses : actions/checkout@v3
80+ uses : actions/checkout@v4
6781
6882 - name : Setup
6983 uses : ./.github/actions/setup
7084 with :
7185 github_token : ${{ secrets.GITHUB_TOKEN }}
7286
7387 - name : Cache turborepo for Android
74- uses : actions/cache@v3
88+ uses : actions/cache@v4
7589 with :
7690 path : ${{ env.TURBO_CACHE_DIR }}
7791 key : ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
@@ -112,7 +126,7 @@ jobs:
112126
113127 - name : Cache Gradle
114128 if : env.turbo_cache_hit != 1
115- uses : actions/cache@v3
129+ uses : actions/cache@v4
116130 with :
117131 path : |
118132 ~/.gradle/wrapper
@@ -133,15 +147,15 @@ jobs:
133147 TURBO_CACHE_DIR : .turbo/ios
134148 steps :
135149 - name : Checkout
136- uses : actions/checkout@v3
150+ uses : actions/checkout@v4
137151
138152 - name : Setup
139153 uses : ./.github/actions/setup
140154 with :
141155 github_token : ${{ secrets.GITHUB_TOKEN }}
142156
143157 - name : Cache turborepo for iOS
144- uses : actions/cache@v3
158+ uses : actions/cache@v4
145159 with :
146160 path : ${{ env.TURBO_CACHE_DIR }}
147161 key : ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
0 commit comments