Skip to content

Commit

Permalink
migrate CI config from Gitlab to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Püschel authored and Sven Püschel committed Nov 16, 2024
1 parent 2b0acca commit 5e86cff
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 23 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- uses: actions/checkout@v4

- name: Check formatting, unused modules and suspicious code
run: |
go fmt ./...
go mod tidy
git diff --exit-code
go vet ./...
- name: Build project
run: |
mkdir bin
GOBIN="$PWD/bin" CGO_ENABLED=0 go install ./...
- name: Upload artifacts
uses: actions/upload-artifacts@v4
with:
name: binaries
path: bin/
23 changes: 0 additions & 23 deletions .gitlab-ci.yml

This file was deleted.

0 comments on commit 5e86cff

Please sign in to comment.