mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-28 17:55:56 +08:00
fix: 修正 actions 构建错误 (#1145)
This commit is contained in:
parent
3e6fefe1b7
commit
d64e1713fb
2 changed files with 9 additions and 4 deletions
6
.github/workflows/build-test.yml
vendored
6
.github/workflows/build-test.yml
vendored
|
|
@ -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
vendored
7
.github/workflows/release-drafter.yml
vendored
|
|
@ -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…
Add table
Reference in a new issue