Skip to content

docs: 重写了使用说明 #48

docs: 重写了使用说明

docs: 重写了使用说明 #48

Workflow file for this run

name: Wails build
on:
push:
tags:
# Match any new tag
- '*'
env:
# Necessary for most environments as build failure can occur due to OOM issues
NODE_OPTIONS: "--max-old-space-size=4096"
jobs:
build:
permissions:
contents: write
strategy:
# Failure in one platform build won't impact the others
fail-fast: false
matrix:
build:
# - name: 'windows-amd64'
# platform: 'windows/amd64'
# os: 'windows-latest'
# - name: 'windows-arm64'
# platform: 'windows/arm64'
# os: 'windows-latest'
# - name: 'mac-amd64'
# platform: 'darwin/amd64'
# os: 'macos-latest'
- name: 'Build'
platform: 'darwin/arm64'
os: 'macos-latest'
runs-on: ${{ matrix.build.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.22'
cache: 'go-build'
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: Install Wails
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest
- name: Build Wails
run: wails build -platform windows/amd64,windows/arm64,darwin/amd64,darwin/arm64
- name: Zip Mac Build
run: zip -r build/bin/小鸦抢课-amd64.app.zip build/bin/小鸦抢课-amd64.app && zip -r build/bin/小鸦抢课-arm64.app.zip build/bin/小鸦抢课-arm64.app
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
build/bin/*
draft: false
prerelease: true
# - name: Upload Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.build.name }}
# path: build/bin/*