-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from xiaomakuaiz/feat-speedup
Feat speedup
- Loading branch information
Showing
19 changed files
with
1,876 additions
and
218 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
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,55 @@ | ||
name: release blasehttp macos gui | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
macos-gui-releaser: | ||
runs-on: macos-14 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: Set up fyne | ||
run: go install fyne.io/fyne/v2/cmd/fyne@latest | ||
|
||
- name: build macos | ||
run: | | ||
GOARCH=amd64 fyne package --appID com.chaitin.blazehttp --name blazehttp_amd64 --src ./gui/ --os darwin -icon ../Icon.png | ||
GOARCH=arm64 fyne package --appID com.chaitin.blazehttp --name blazehttp_arm64 --src ./gui/ --os darwin -icon ../Icon.png | ||
- name: Normalise version tag | ||
id: normalise_version | ||
shell: bash | ||
run: | | ||
version=$(echo ${{ github.ref_name }} | sed -e 's/v//g') | ||
echo "version=$version" >> "$GITHUB_OUTPUT" | ||
- name: Normalise artifact name | ||
id: normalise_artifact_name | ||
shell: bash | ||
run: | | ||
tar -cvzf blazehttp_${{ steps.normalise_version.outputs.version }}_darwin_amd64_gui.tar.gz blazehttp_amd64.app | ||
tar -cvzf blazehttp_${{ steps.normalise_version.outputs.version }}_darwin_arm64_gui.tar.gz blazehttp_arm64.app | ||
- name: release gui | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
files: | | ||
./blazehttp_${{ steps.normalise_version.outputs.version }}_darwin_amd64_gui.tar.gz | ||
./blazehttp_${{ steps.normalise_version.outputs.version }}_darwin_arm64_gui.tar.gz | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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,52 @@ | ||
name: release blasehttp windows gui | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
windows-gui-releaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: Set up fyne-cross | ||
run: go install github.com/fyne-io/fyne-cross@latest | ||
|
||
- name: build windows | ||
run: fyne-cross windows -app-id cn.chaitin.blazehttp -arch="amd64,arm64" ./gui | ||
|
||
- name: Normalise version tag | ||
id: normalise_version | ||
shell: bash | ||
run: | | ||
version=$(echo ${{ github.ref_name }} | sed -e 's/v//g') | ||
echo "version=$version" >> "$GITHUB_OUTPUT" | ||
- name: Normalise artifact name | ||
id: normalise_artifact_name | ||
shell: bash | ||
run: | | ||
mv ./fyne-cross/dist/windows-amd64/blazehttp.exe.zip ./fyne-cross/dist/windows-amd64/blazehttp_${{ steps.normalise_version.outputs.version }}_windows_amd64_gui.zip | ||
mv ./fyne-cross/dist/windows-arm64/blazehttp.exe.zip ./fyne-cross/dist/windows-arm64/blazehttp_${{ steps.normalise_version.outputs.version }}_windows_arm64_gui.zip | ||
- name: release gui | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
files: | | ||
./fyne-cross/dist/windows-amd64/blazehttp_${{ steps.normalise_version.outputs.version }}_windows_amd64_gui.zip | ||
./fyne-cross/dist/windows-arm64/blazehttp_${{ steps.normalise_version.outputs.version }}_windows_arm64_gui.zip | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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
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 |
---|---|---|
|
@@ -24,4 +24,5 @@ go.work | |
dist/ | ||
output*/ | ||
.builds/ | ||
build/ | ||
build/ | ||
fyne-cross |
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
Oops, something went wrong.