Skip to content

Commit

Permalink
Merge pull request #1 from Mak0tin/create_gh_action
Browse files Browse the repository at this point in the history
Create GitHub action for building binaries for different plaftorms
  • Loading branch information
by2waysprojects authored Dec 4, 2024
2 parents 9556f76 + dc77d68 commit f5fefb9
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Binaries

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go-version: ['1.22.4']

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}

- name: Build
run: |
go build -o bin/shellcode-db-${{ matrix.os }}-${{ matrix.go-version }} ./cmd/
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: shellcode-db-binaries-${{ matrix.os }}-${{ matrix.go-version }}
path: bin/

0 comments on commit f5fefb9

Please sign in to comment.