Skip to content

Allow multiple consoles per process from a session #148

Allow multiple consoles per process from a session

Allow multiple consoles per process from a session #148

Workflow file for this run

name: Go CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-12, windows-latest]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go >=1.19
uses: actions/setup-go@v4
with:
go-version: '>=1.19.0'
id: go
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -ldflags="-s -w" -v .
# - name: Test
# run: go test -v .
- name: Set GOARCH=arm64 on macOS/Linux
if: ${{ success() && matrix.os != 'windows-latest' }}
run: echo "GOARCH=arm64" >> $GITHUB_ENV
- name: Set GOARCH=arm64 on Windows
if: ${{ success() && matrix.os == 'windows-latest' }}
run: echo "GOARCH=arm64" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Build ARMv8 binary
if: ${{ success() }}
run: go build -o ${{ matrix.os == 'windows-latest' && 'octyne-armv8.exe' || 'octyne-armv8' }} -ldflags="-s -w" -v .
- name: Build ARMv6 binary for Linux
if: ${{ success() && matrix.os == 'ubuntu-20.04' }}
run: GOARCH=arm GOARM=6 go build -o octyne-armv6 -ldflags="-s -w" -v .
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
if: ${{ success() }}
with:
name: octyne-${{ matrix.os }}
path: octyne*