Skip to content

Commit

Permalink
build.yaml: Use self-hosted runner for build pipeline (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpotter92 authored Sep 29, 2023
1 parent 5c8f8e0 commit 77621d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ env:

jobs:
build:
name: Build and download binaries from manifest for ${{ matrix.platform.name }}-${{ matrix.architecture }}
runs-on: ubuntu-latest
name: Download binaries for ${{ matrix.platform.name }}-${{ matrix.architecture }}
runs-on: ${{ matrix.platform.name }}
strategy:
fail-fast: false
matrix:
Expand All @@ -30,9 +30,7 @@ jobs:
- amd64
platform:
- name: linux
os: ubuntu-latest
- name: darwin
os: macos-latest

steps:
- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/catalyst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
target: stripped
target_suffix: "-arm64"
debug_suffix: ""
# example: livepeer/catalyst:latest-amd-debug
# example: livepeer/catalyst:latest-amd64-debug
# unstripped binaries for use with gdb coredump debugging
- platforms: linux/amd64
target: full
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/setup-go@v4
with:
go-version-file: go.mod
go-version: '1.20.5'
go-version: "1.20.5"
cache: true
cache-dependency-path: go.sum

Expand All @@ -53,13 +53,17 @@ jobs:
uses: FedericoCarboni/setup-ffmpeg@v2

- name: Run tests with coverage
run: go test --covermode=atomic --coverprofile=coverage.out $(go list ./... | grep -v 'test/e2e')
run:
go test --covermode=atomic --coverprofile=coverage.out $(go list ./...
| grep -v 'test/e2e')

- name: Build Docker image
run: make docker DOCKER_TAG=catalyst-e2e-test

- name: Run E2E tests
run: go test $(go list ./... | grep 'test/e2e') --timeout 15m --image catalyst-e2e-test
run:
go test $(go list ./... | grep 'test/e2e') --timeout 15m --image
catalyst-e2e-test

- name: Upload coverage reports
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 77621d7

Please sign in to comment.