-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
96 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,46 @@ | ||
# This workflow will build a golang project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | ||
|
||
name: Go | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: 'go.mod' | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3.8.1 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Build | ||
run: | | ||
npm install yarn | ||
yarn install | ||
yarn build | ||
go generate | ||
# go env CGO_ENABLED=0 | ||
go env -w GOOS=windows | ||
# go env GOARCH=amd64 | ||
# yarn go:build:win | ||
go build --tags withsource -ldflags "-H windowsgui" | ||
- name: Upload | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: loract-umi-demo_win_x64 | ||
path: jieshao.loract-umi-demo.exe | ||
retention-days: 3 |
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,37 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
with: | ||
draft: fast | ||
prerelease: false | ||
release_name: ${{ steps.version.outputs.version }} | ||
tag_name: ${{ github.ref }} | ||
body_path: CHANGELOG.md | ||
- name: build-win | ||
run: | | ||
npm install yarn | ||
yarn install | ||
yarn build | ||
go generate | ||
go env -w GOOS=windows | ||
go build --tags withsource -ldflags "-H windowsgui" | ||
- name: Upload windows artifact | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
uoload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: jieshao.loract-umi-demo.exe | ||
asset_name: jieshao.loract-umi-demo.exe | ||
asset_content_tpye: application/vnd.microsoft.porttable-executable |
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,12 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
## [Unreleased] | ||
|
||
## [0.0.1] - 2023-09-22 | ||
### 支持 | ||
umi3 | ||
chrome < 117 | ||
取消chrome被自动化软件控制提示 | ||
github actions化 | ||
增加无chrome提示 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.