Skip to content

Add build onyx pipleline for testing #2

Add build onyx pipleline for testing

Add build onyx pipleline for testing #2

Workflow file for this run

name: Test onyx pipeline
on:
workflow_dispatch:
push:
branches:
- "test-onyx-caching"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ">=1.20.0"
cache: true
- name: Setup Golang caches
id: go-cache
uses: actions/cache@v3
with:
path: |
onyx/bin
key: ${{ runner.os }}-golang-${{ hashFiles('onyx/bin') }}
restore-keys: |
${{ runner.os }}-golang-
- if: ${{ steps.go-cache.outputs.cache-hit != 'true' }}
working-directory: onyx
name: Build
run: |
make setup
make build