Skip to content

add github build and test workflows #2

add github build and test workflows

add github build and test workflows #2

Workflow file for this run

name: build
on: [workflow_call]
jobs:
build:
strategy:
matrix:
include:
- arch: x86_64
target_os: linux
- arch: i686
target_os: linux
- arch: aarch64
target_os: linux
- arch: armv7
target_os: linux
- arch: armv5
target_os: linux
- arch: x86_64
target_os: android
- arch: i686
target_os: android
- arch: aarch64
target_os: android
- arch: armv7
target_os: android
- arch: x86_64
target_os: windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
- run: export GOOS=${{ matrix.target_os }}
- run: export GOARCH=${{ matrix.arch }}
- run: go build -o ./dist/

Check failure on line 36 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: wireguard-go-${{ matrix.target_os }}-${{ matrix.arch }}
path: dist/