Skip to content

GA Debug

GA Debug #2

Workflow file for this run

name: Funnel Build and Cache
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Check out code
uses: actions/checkout@v2
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-mod-
- name: Cache Funnel binary
uses: actions/cache@v3
with:
path: ./funnel # Path to the Funnel executable
key: ${{ runner.os }}-funnel-bin-${{ hashFiles('**/go.sum') }}
- name: Build Funnel (only if cache doesn't exist)
run: |
if [ ! -f ./funnel ]; then
make build
fi
- name: Cache Funnel binary (after build)
uses: actions/cache@v3
with:
path: funnel/
key: ${{ runner.os }}-funnel-bin-${{ hashFiles('**/go.sum') }}
- name: Upload Funnel binary as artifact (optional)
uses: actions/upload-artifact@v4
with:
name: funnelBin
path: funnel/