Merge remote-tracking branch 'origin/main' into update-modules #49
Workflow file for this run
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
name: build binary and installer | |
on: | |
push: | |
env: | |
NODE_VERSION: 18.x | |
jobs: | |
build-exe: | |
runs-on: windows-latest | |
steps: | |
- name: Install NSIS | |
run: | | |
iwr -useb get.scoop.sh -outfile 'install.ps1' | |
.\install.ps1 -RunAsAdmin | |
scoop update | |
scoop bucket add extras | |
scoop install nsis | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Print NSIS version | |
run: | | |
echo makensis -VERSION >> $env:GITHUB_STEP_SUMMARY | |
makensis -VERSION >> $env:GITHUB_STEP_SUMMARY | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Insatll wails | |
run: | | |
go install github.com/wailsapp/wails/v2/cmd/wails@latest | |
go get ./... | |
- name: build | |
run: | | |
wails build -nsis | |
go build -o build/bin/omni-socat.exe ./cmd/omni-socat | |
powershell Compress-Archive -Path build/bin/omni-socat.exe -DestinationPath build/bin/omni-socat.zip | |
rm build/bin/omni-socat.exe | |
powershell Compress-Archive -Path build/bin/OmniSSHAgent.exe -DestinationPath build/bin/OmniSSHAgent.zip | |
rm build/bin/OmniSSHAgent.exe | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: build-files | |
path: | | |
${{ github.workspace }}\build\bin\*.exe | |
${{ github.workspace }}\build\bin\*.zip | |
- name: show info | |
run: | | |
echo "ls build/bin" >> $env:GITHUB_STEP_SUMMARY | |
ls "build/bin">> $env:GITHUB_STEP_SUMMARY | |
create-release: | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-22.04 | |
needs: [build-exe] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download All Artifacts | |
uses: actions/download-artifact@v3 | |
- uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: true | |
fail_on_unmatched_files: true | |
generate_release_notes: true | |
files: | | |
./build-files/* |