Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CNOCTAVE committed Nov 14, 2024
1 parent fd73b99 commit ae33c8f
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 216 deletions.
338 changes: 123 additions & 215 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,226 +8,135 @@ on:
types: [created]

jobs:
# linux-build:
# runs-on: ubuntu-latest
# env:
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - uses: samuelmeuli/action-snapcraft@v2
# - run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install lzip elfutils libarchive-tools wine wine32 -y
# - run: npm ci
# - run: npm run build-linux

# windows-build:
# runs-on: windows-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-win

# macos-build:
# runs-on: macos-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-macos

# publish-npm:
# runs-on: ubuntu-latest
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - uses: samuelmeuli/action-snapcraft@v2
# - run: npm ci
# - run: npm publish











# macos_universal-build:
# runs-on: macos-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-mac_universal

# mac_zip-build:
# runs-on: macos-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-mac_zip

# mac_zip_universal-build:
# runs-on: macos-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-mac_zip_universal
linux-build:
runs-on: ubuntu-latest
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- uses: samuelmeuli/action-snapcraft@v2
- run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install lzip elfutils libarchive-tools wine wine32 -y
- run: npm ci
- run: npm run build-linux

# win_universal-build:
# runs-on: windows-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-win_universal
windows-build:
runs-on: windows-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build-win

# win_nsis-build:
# runs-on: windows-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-win_nsis
macos-build:
runs-on: macos-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build-macos

# win_nsis_universal-build:
# runs-on: windows-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-win_nsis_universal
publish-npm:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- uses: samuelmeuli/action-snapcraft@v2
- run: npm ci
- run: npm publish

# win_squirrel-build:
# runs-on: windows-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-win_squirrel
macos_universal-build:
runs-on: macos-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build-mac_universal

# win_squirrel_universal-build:
# runs-on: windows-latest
# env:
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm run build-win_squirrel_universal
mac_zip-build:
runs-on: macos-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build-mac_zip

# linux_apk-build:
# runs-on: ubuntu-latest
# env:
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - uses: samuelmeuli/action-snapcraft@v2
# - run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install lzip elfutils libarchive-tools wine wine32 -y
# - run: npm ci
# - run: npm run build-linux_apk
mac_zip_universal-build:
runs-on: macos-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build-mac_zip_universal

# linux_apk_universal-build:
# runs-on: ubuntu-latest
# env:
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: https://registry.npmjs.org/
# - uses: samuelmeuli/action-snapcraft@v2
# - run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install lzip elfutils libarchive-tools wine wine32 -y
# - run: npm ci
# - run: npm run build-linux_apk_universal
win_nsis-build:
runs-on: windows-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- uses: bduff9/[email protected]
with:
dot-npmrc: ${{ secrets.DOT_NPMRC }}
- run: npm ci
- run: npm run build-win_nsis

# linux_flatpak-build:
# runs-on: ubuntu-latest
# env:
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 18
# registry-url: https://registry.npmjs.org/
# - uses: samuelmeuli/action-snapcraft@v2
# - run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install flatpak flatpak-builder lzip elfutils libarchive-tools wine wine32 -y
# - run: npm ci
# - run: npm run build-linux_flatpak
win_squirrel-build:
runs-on: windows-latest
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- uses: bduff9/[email protected]
with:
dot-npmrc: ${{ secrets.DOT_NPMRC }}
- run: npm ci
- run: npm run build-win_squirrel

linux_flatpak_universal-build:
linux_apk-build:
runs-on: ubuntu-latest
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
Expand All @@ -236,13 +145,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
registry-url: https://registry.npmjs.org/
- uses: bduff9/[email protected]
with:
dot-npmrc: ${{ secrets.DOT_NPMRC }}
- uses: samuelmeuli/action-snapcraft@v2
- run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install flatpak flatpak-builder lzip elfutils libarchive-tools wine wine32 -y
- run: npm install --save electron-prebuilt-compile
- run: sudo dpkg --add-architecture i386 && sudo apt-get update -y && sudo apt-get install lzip elfutils libarchive-tools wine wine32 -y
- run: npm ci
- run: npm run build-linux_flatpak
- run: npm run build-linux_apk
Loading

0 comments on commit ae33c8f

Please sign in to comment.