Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
Arm64 build
Code coverage
Static checks

Signed-off-by: amaslennikov <amaslennikov@nvidia.com>
  • Loading branch information
almaslennikov committed Jul 10, 2023
1 parent 7f0eca3 commit 6506c12
Show file tree
Hide file tree
Showing 10 changed files with 246 additions and 396 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: build-images
on: [pull_request]
jobs:
build-images:
runs-on: ubuntu-latest
steps:
- name: Set repository as lower-case output variable
id: repo_name
run: echo ::set-output name=repository::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build container image
uses: docker/build-push-action@v3
with:
push: false
tags: ghcr.io/${{ steps.repo_name.outputs.repository }}:latest-amd64
file: ./Dockerfile
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on: [push, pull_request]
name: build
jobs:
build:
strategy:
matrix:
go-version: [1.19.x]
goarch: [amd64]
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: Build
env:
GOARCH: ${{ matrix.goarch }}
run: make build
61 changes: 0 additions & 61 deletions .github/workflows/buildtest.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/codeql.yaml

This file was deleted.

118 changes: 0 additions & 118 deletions .github/workflows/image-push-master.yaml

This file was deleted.

Loading

0 comments on commit 6506c12

Please sign in to comment.