Skip to content

Commit 7c05ddb

Browse files
authored
Merge pull request #230 from x1unix/hotfix/ci
hotfix: ci
2 parents a68c646 + d893c28 commit 7c05ddb

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.github/workflows/pull_request.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ jobs:
2828
path: ${{ steps.go-cache-paths.outputs.go-mod }}
2929
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
3030
- uses: actions/cache@v3
31+
env:
32+
cache-name: npm-cache
3133
with:
32-
path: "**/node_modules"
33-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
34+
path: "web/node_modules"
35+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
${{ runner.os }}-build-${{ env.cache-name }}-
3438
- name: Install modules
3539
run: yarn
3640
working-directory: ./web

.github/workflows/release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v3
2727
- uses: actions/cache@v3
28+
env:
29+
cache-name: npm-cache
2830
with:
29-
path: "**/node_modules"
30-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
31+
path: "web/node_modules"
32+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-build-${{ env.cache-name }}-
3135
3236
- name: Set release version
3337
run: |
@@ -53,7 +57,7 @@ jobs:
5357
with:
5458
images: |
5559
x1unix/go-playground
56-
ghcr.io/x1unix/go-playground/go-playground
60+
ghcr.io/${{ github.repository }}/go-playground
5761
tags: |
5862
type=semver,pattern={{version}}
5963
type=semver,pattern={{major}}.{{minor}}
@@ -65,14 +69,13 @@ jobs:
6569
id: buildx
6670
uses: docker/setup-buildx-action@v2
6771

68-
- name: Build frontend
69-
uses: actions/setup-node@v3
72+
- uses: actions/setup-node@v3
7073
with:
7174
node-version: 'lts/gallium'
72-
cache: 'yarn'
73-
cache-dependency-path: "${{ github.workspace }}/web"
75+
7476
- run: |
75-
yarn --cwd='${{ github.workspace }}/work' install --silent && yarn --cwd='${{ github.workspace }}/work' build
77+
yarn install --silent && yarn build
78+
working-directory: ./web
7679
env:
7780
NODE_ENV: "production"
7881
REACT_APP_VERSION: "${{ env.RELEASE_VERSION }}"
@@ -91,5 +94,6 @@ jobs:
9194
build-args: |
9295
APP_VERSION=${{ env.RELEASE_VERSION }}
9396
push: true
97+
9498
- name: Print image digest
9599
run: echo ${{ steps.docker_build.outputs.digest }}

web/src/lib/gowasm/bindings/browserfs/binding.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
SliceHeader,
88
SliceHeaderType,
99
StackReader,
10-
stringDecoder,
1110
stringEncoder,
1211
} from '~/lib/go';
1312
import {Errno, SyscallError} from '~/lib/go/pkg/syscall';

0 commit comments

Comments
 (0)