-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(🆕): Add GitHub Actions workflow for Wails build
- Loading branch information
1 parent
76015f9
commit df9a09f
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Wails Build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build_windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Build Copilot for Windows | ||
uses: dAppServer/[email protected] | ||
with: | ||
build-name: jianyingpro-batch-keyframe-copilot | ||
build-platform: windows/amd64 | ||
package: false | ||
nsis: true | ||
- name: show tree | ||
run: ls -R | ||
- name: upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./build/bin/*.exe | ||
name: windows | ||
|
||
build_macos: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Build Copilot for macOS | ||
uses: dAppServer/[email protected] | ||
with: | ||
build-name: jianyingpro-batch-keyframe-copilot | ||
build-platform: darwin/amd64 | ||
package: false | ||
codesign: false | ||
- name: upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./build/bin/*.app.zip | ||
name: macos | ||
upload: | ||
needs: [build_windows, build_macos] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: download artifact | ||
uses: actions/[email protected] | ||
- name: show tree | ||
run: ls -R | ||
- name: Upload Windows Copilot | ||
uses: ckylinmc/[email protected] | ||
with: | ||
source: ./windows/jianyingpro-batch-keyframe-copilot-amd64-installer.exe | ||
bucketname: ${{ secrets.BUCKET }} | ||
dest: /jianyingpro-batch-keyframe-copilot/windows/jianyingpro-batch-keyframe-copilot-amd64-installer.exe | ||
accesskey: ${{ secrets.ACCESSKEY }} | ||
secretkey: ${{ secrets.SECRETKEY }} | ||
endpoint: ${{ secrets.ENDPOINT }} | ||
- name: Upload MacOS Copilot | ||
uses: ckylinmc/[email protected] | ||
with: | ||
source: ./macos/jianyingpro-batch-keyframe-copilot.app.zip | ||
bucketname: ${{ secrets.BUCKET }} | ||
dest: /jianyingpro-batch-keyframe-copilot/macos/jianyingpro-batch-keyframe-copilot.app.zip | ||
accesskey: ${{ secrets.ACCESSKEY }} | ||
secretkey: ${{ secrets.SECRETKEY }} | ||
endpoint: ${{ secrets.ENDPOINT }} |