mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-02 13:33:12 +00:00
51 lines
995 B
YAML
51 lines
995 B
YAML
name: Artifacts
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.target.os }}
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
- os: ubuntu-latest
|
|
name: linux
|
|
cpu: amd64
|
|
|
|
- os: ubuntu-24.04-arm
|
|
cpu: arm64
|
|
name: linux
|
|
|
|
- os: macos-latest
|
|
name: macos
|
|
cpu: arm64
|
|
|
|
- os: windows-latest
|
|
cpu: amd64
|
|
name: windows
|
|
lib_ext: dll
|
|
|
|
steps:
|
|
- name: Check out sources
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Fetch artifacts
|
|
env:
|
|
OS: ${{ matrix.target.name }}
|
|
ARCH: ${{ matrix.target.cpu }}
|
|
run: make fetch
|
|
|
|
- name: Build
|
|
run: make build
|
|
|
|
- name: Run
|
|
run: make run |