Skip to content

bump server to 1.14.8 and start server faster #8

bump server to 1.14.8 and start server faster

bump server to 1.14.8 and start server faster #8

Workflow file for this run

name: Release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.21.6"
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
location: D:\
- name: Install WebView2
shell: msys2 {0}
run: |
cd /d
mkdir webview2
cd webview2
curl -sSL "https://www.nuget.org/api/v2/package/Microsoft.Web.WebView2" | bsdtar -xvf-
- name: Build
shell: cmd
run: |
set Path=%Path%;D:\msys64\mingw64\bin
set CGO_CXXFLAGS=-ID:\webview2\build\native\include
go build -v -ldflags "-s -w -H=windowsgui" -o httptoolkit-desktop-go.exe .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: win
path: httptoolkit-desktop-go.exe
build-linux:
runs-on: ubuntu-22.04
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.20.4"
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Linux dependencies
run: |
sudo apt update
sudo apt install libgtk-3-dev libwebkit2gtk-4.0-dev
- name: Build
run: |
go build -v -ldflags "-s -w" -o httptoolkit-desktop-go .
chmod +x httptoolkit-desktop-go
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: linux
path: httptoolkit-desktop-go
release:
runs-on: ubuntu-latest
needs: [build-windows, build-linux]
steps:
- uses: actions/download-artifact@v3
with:
name: win
path: win
- uses: actions/download-artifact@v3
with:
name: linux
path: linux
- name: Release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v1
with:
name: ${{ github.ref_name }}
files: |
win/httptoolkit-desktop-go.exe
linux/httptoolkit-desktop-go