Apply php-cs-fixer changes #77
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@v4 | |
with: | |
name: build-files-windows | |
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 | |
build-wsl2-ssh-agent-proxy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: build | |
run: | | |
go build -o build/bin/wsl2-ssh-agent-proxy ./cmd/wsl2-ssh-agent-proxy | |
gzip build/bin/wsl2-ssh-agent-proxy | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: build-files-linux | |
path: | | |
${{ github.workspace }}/build/bin/*.gz | |
- 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, build-wsl2-ssh-agent-proxy] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download All Artifacts | |
uses: actions/download-artifact@v4 | |
- uses: softprops/action-gh-release@v2 | |
with: | |
prerelease: true | |
fail_on_unmatched_files: true | |
generate_release_notes: true | |
files: | | |
./build-files-*/* |