Skip to content

Commit

Permalink
ci: remove deno compile binary
Browse files Browse the repository at this point in the history
  • Loading branch information
runreal-warman committed Mar 22, 2024
1 parent f4f8301 commit a0c0783
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 48 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ jobs:
- name: Deno Info
run: deno info src/index.ts

- name: Deno Compile [windows]
run: deno task compile-win

- name: Deno Compile [macos]
run: deno task compile-macos

- name: Deno Compile [linux]
run: deno task compile-linux

- name: Cache Deno dependencies
uses: actions/cache@v3
with:
Expand Down
36 changes: 1 addition & 35 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,4 @@ jobs:
release-type: simple
extra-files: |
README.md
src/version.ts
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- name: Setup Deno ${{ matrix.deno-version }}
if: ${{ steps.release.outputs.release_created }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}

- name: Deno Compile [windows]
if: ${{ steps.release.outputs.release_created }}
run: deno task compile-win

- name: Deno Compile [macos]
if: ${{ steps.release.outputs.release_created }}
run: deno task compile-macos

- name: Deno Compile [linux]
if: ${{ steps.release.outputs.release_created }}
run: deno task compile-linux

- name: Upload Artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./build/runreal-win-x64.exe ./build/runreal-macos-arm ./build/runreal-linux-x64

- name: Cache Deno dependencies
if: ${{ steps.release.outputs.release_created }}
uses: actions/cache@v3
with:
path: ${{ env.DENO_DIR }}
key: ${{ hashFiles('deno.lock') }}
src/version.ts
5 changes: 1 addition & 4 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"tasks": {
"start": "deno run -A --watch=src src/index.ts",
"run": "deno run -A src/index.ts",
"compile-win": "deno compile -A --target x86_64-pc-windows-msvc --output build/triggerr-win-x64 src/index.ts",
"compile-linux": "deno compile -A --target x86_64-unknown-linux-gnu --output build/triggerr-linux-x64 src/index.ts",
"compile-macos": "deno compile -A --target aarch64-apple-darwin --output build/triggerr-macos-arm src/index.ts"
"run": "deno run -A src/index.ts"
},
"lint": {
"include": ["src/"],
Expand Down

0 comments on commit a0c0783

Please sign in to comment.