Skip to content

Change build to Go 1.19 #2

Change build to Go 1.19

Change build to Go 1.19 #2

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Build
run: ./install-ipfs-and-plugin.sh
- name: Test
run: go test -v ./...
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: Plugin.so for ${{ matrix.os }}
path: |
build/plugin.so