This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Add code of conduct #108
Workflow file for this run
This file contains hidden or 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: Go | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| jobs: | |
| build-and-test: | |
| name: Build and test | |
| strategy: | |
| matrix: | |
| runner: [macos-14, ubuntu-24.04] | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.20' | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: go build -v | |
| - name: Test | |
| run: go test -v | |
| - name: Run example | |
| working-directory: example | |
| run: go run main.go | |
| build-and-test-windows: | |
| name: Build and test (Windows) | |
| runs-on: windows-latest | |
| defaults: | |
| run: | |
| shell: msys2 {0} | |
| env: | |
| GOROOT: /ucrt64/lib/go | |
| GOPATH: /ucrt64 | |
| steps: | |
| - name: Set up MSYS2 | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| update: true | |
| msystem: UCRT64 | |
| install: >- | |
| curl | |
| git | |
| mingw-w64-ucrt-x86_64-go | |
| mingw-w64-ucrt-x86_64-gcc | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: go build -v | |
| - name: Test | |
| run: | | |
| export PATH="$(pwd)/lib/dynamic/windows:$PATH" | |
| go test -v | |
| - name: Run example | |
| run: | | |
| export PATH="$(pwd)/lib/dynamic/windows:$PATH" | |
| cd example | |
| go run main.go |