Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe authored Aug 14, 2023
1 parent b587d07 commit 62523bb
Showing 1 changed file with 2 additions and 66 deletions.
68 changes: 2 additions & 66 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,10 @@ name: Prebuild
on: push

jobs:
prebuild-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
- run: yarn apply-libuiohook-patch
- run: yarn --frozen-lockfile
- run: yarn prebuild --arch x64
# - run: yarn prebuild --arch arm64
- uses: actions/upload-artifact@v3
with:
name: windows
path: prebuilds

prebuild-linux:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- run: ldd --version
- uses: actions/checkout@v3
with:
submodules: true
Expand All @@ -37,52 +22,3 @@ jobs:
with:
name: linux
path: prebuilds

prebuild-darwin:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
- run: yarn apply-libuiohook-patch
- run: yarn --frozen-lockfile
- run: yarn prebuild --arch x64
- run: yarn prebuild --arch arm64
- uses: actions/upload-artifact@v3
with:
name: darwin
path: prebuilds

build-package:
needs:
- prebuild-windows
- prebuild-linux
- prebuild-darwin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: windows
path: prebuilds
- uses: actions/download-artifact@v3
with:
name: linux
path: prebuilds
- uses: actions/download-artifact@v3
with:
name: darwin
path: prebuilds
- uses: actions/setup-node@v3
- run: yarn apply-libuiohook-patch
- run: yarn --frozen-lockfile --ignore-scripts
- run: yarn tsc
- run: npm pack
- uses: actions/upload-artifact@v3
with:
name: package
path: uiohook-napi-*.tgz
retention-days: 3

0 comments on commit 62523bb

Please sign in to comment.