Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
feat(ci): Support Windows & Linux platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0tx420 committed Sep 15, 2024
1 parent b92d039 commit 54a95aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ on:

jobs:
build-and-release:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
runs-on: "ubuntu-latest"
permissions:
contents: write
steps:
Expand All @@ -22,11 +19,11 @@ jobs:

- run: bun install

- run: bun run compile
- run: |
bun run compile_win32
bun run compile_linux
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: |
"./build/srvinstaller"
"./build/srvinstaller.exe"
artifacts: "./build/srvinstaller,./build/srvinstaller_win32.exe,sources.json"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
},
"scripts": {
"start": "bun run src/main.ts",
"compile": "bun build --compile --minify --sourcemap ./src/main.ts --outfile ./build/srvinstaller"
"compile_win32": "bun build ./src/main.ts --compile --target=bun-windows-x64 --minify --outfile ./build/srvinstaller_win32",
"compile_linux": "bun build ./src/main.ts --compile --target=bun-linux-x64 --minify --outfile ./build/srvinstaller"
},
"type": "module",
"dependencies": {
Expand Down

0 comments on commit 54a95aa

Please sign in to comment.