Skip to content

Commit

Permalink
[skip test][skip mac][skip linux][skip win]
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdong262 committed Dec 30, 2023
1 parent 5ebc801 commit 64b8fdc
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 3 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/linux-arm64.yml
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

25 changes: 25 additions & 0 deletions build/bin/build-linux-arm64.js
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()
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "electerm",
"version": "1.37.96",
"version": "1.37.100",
"description": "Terminal/ssh/telnet/serialport/sftp client(linux, mac, win)",
"main": "app.js",
"bin": "npm/electerm",
Expand Down

0 comments on commit 64b8fdc

Please sign in to comment.