Browse Source

fix: 修正 actions 构建错误 (#1145)

pull/1147/head
吴小白 2 years ago committed by GitHub
parent
commit
d64e1713fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .github/workflows/build-test.yml
  2. 7
      .github/workflows/release-drafter.yml

6
.github/workflows/build-test.yml

@ -16,7 +16,8 @@ jobs:
run: sudo apt-get update && sudo apt-get -y install gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf gcc-powerpc64le-linux-gnu gcc-s390x-linux-gnu run: sudo apt-get update && sudo apt-get -y install gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf gcc-powerpc64le-linux-gnu gcc-s390x-linux-gnu
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3 - name: Setup Node
uses: actions/setup-node@v3
with: with:
node-version: '18.14' node-version: '18.14'
- name: Build Web - name: Build Web
@ -25,7 +26,8 @@ jobs:
cd frontend && npm install && npm run build:dev cd frontend && npm install && npm run build:dev
env: env:
NODE_OPTIONS: --max-old-space-size=8192 NODE_OPTIONS: --max-old-space-size=8192
- uses: actions/setup-go@v4 - name: Setup Go
uses: actions/setup-go@v4
with: with:
go-version: '1.20.x' go-version: '1.20.x'
- name: Build Server - name: Build Server

7
.github/workflows/release-drafter.yml

@ -12,8 +12,10 @@ jobs:
steps: steps:
- name: Install cross-compilers - name: Install cross-compilers
run: sudo apt-get update && sudo apt-get -y install gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf gcc-powerpc64le-linux-gnu gcc-s390x-linux-gnu run: sudo apt-get update && sudo apt-get -y install gcc-x86-64-linux-gnu gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf gcc-powerpc64le-linux-gnu gcc-s390x-linux-gnu
- name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: actions/setup-node@v3 - name: Setup Node
uses: actions/setup-node@v3
with: with:
node-version: '18.14' node-version: '18.14'
- name: Build Web - name: Build Web
@ -21,7 +23,8 @@ jobs:
cd frontend && npm install && npm run build:dev cd frontend && npm install && npm run build:dev
env: env:
NODE_OPTIONS: --max-old-space-size=8192 NODE_OPTIONS: --max-old-space-size=8192
- uses: actions/setup-go@v4 - name: Setup Go
uses: actions/setup-go@v4
with: with:
go-version: '1.20.x' go-version: '1.20.x'
- name: Build Release - name: Build Release

Loading…
Cancel
Save