-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.63 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: build
on:
push:
tags:
- "v*"
permissions:
packages: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Build
run: |
deno compile --target x86_64-unknown-linux-gnu -o fast-down-x86_64-unknown-linux-gnu --allow-write --allow-net --allow-read --include worker.ts main.ts
deno compile --target aarch64-unknown-linux-gnu -o fast-down-aarch64-unknown-linux-gnu --allow-write --allow-net --allow-read --include worker.ts main.ts
deno compile --target x86_64-pc-windows-msvc -o fast-down-x86_64-pc-windows-msvc.exe --allow-write --allow-net --allow-read --include worker.ts main.ts
deno compile --target x86_64-apple-darwin -o fast-down-x86_64-apple-darwin --allow-write --allow-net --allow-read --include worker.ts main.ts
deno compile --target aarch64-apple-darwin -o fast-down-aarch64-apple-darwin --allow-write --allow-net --allow-read --include worker.ts main.ts
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: Fast Down ${{ github.ref_name }}
body: 修复了一些已知问题
draft: false
prerelease: false
files: |
fast-down-x86_64-unknown-linux-gnu
fast-down-aarch64-unknown-linux-gnu
fast-down-x86_64-pc-windows-msvc.exe
fast-down-x86_64-apple-darwin
fast-down-aarch64-apple-darwin