-
-
Notifications
You must be signed in to change notification settings - Fork 923
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip test][skip mac][skip linux][skip win]
- Loading branch information
Showing
4 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: linux-arm64 | ||
|
||
on: | ||
push: | ||
branches: [ build, test ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-20.04 | ||
environment: build | ||
if: "!contains(github.event.head_commit.message, '[skip build]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip arm-linux]') && !contains(github.event.head_commit.message, '[skip linux3]')" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js 18.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
# - name: xvfb | ||
# uses: GabrielBB/xvfb-action@v1 | ||
|
||
# before_script: | ||
# - run: export DISPLAY=:99.0 | ||
# - run: sh -e /etc/init.d/xvfb start & | ||
# - run: sleep 3 | ||
|
||
# before_install: | ||
- run: npm install -g yarn | ||
- run: npm i | ||
|
||
# script: | ||
- run: npm run prepare-build | ||
|
||
- name: build | ||
if: "!contains(github.event.head_commit.message, 'skip build')" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BUILD_NUMBER: ${{ secrets.BUILD_NUMBER }} | ||
CUSTOM_UPLOAD_URL: ${{ secrets.CUSTOM_UPLOAD_URL }} | ||
run: node build/bin/build-linux-arm64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const { echo, rm } = require('shelljs') | ||
const { upload } = require('./custom-upload') | ||
const { | ||
run, | ||
writeSrc, | ||
builder: pb | ||
} = require('./build-common') | ||
|
||
async function main () { | ||
echo('running build for linux part 3 arm64') | ||
|
||
echo('build arm64-tar.gz') | ||
rm('-rf', 'dist') | ||
writeSrc('linux-arm64.tar.gz') | ||
await run(`${pb} --arm64 tar.gz`) | ||
await upload() | ||
|
||
// echo('build deb') | ||
// rm('-rf', 'dist') | ||
// writeSrc('.deb') | ||
// await run(`${pb} --linux --arm64 deb`) | ||
// await upload() | ||
} | ||
|
||
main() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters