mirror of
https://github.com/logos-storage/logos-storage-go-bindings-example.git
synced 2026-01-02 21:43:08 +00:00
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: Artifacts
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.target.os }}
|
|
strategy:
|
|
matrix:
|
|
target:
|
|
# - os: ubuntu-latest
|
|
# name: linux
|
|
# cpu: amd64
|
|
# lib_ext: so
|
|
|
|
# - os: ubuntu-24.04-arm
|
|
# cpu: arm64
|
|
# name: linux
|
|
# lib_ext: so
|
|
|
|
- os: macos-latest
|
|
lib_ext: so
|
|
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 |