Skip to content

ci: 修复测试问题 #4

ci: 修复测试问题

ci: 修复测试问题 #4

Workflow file for this run

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