Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Navyum authored Jan 6, 2025
1 parent b493802 commit 1e3ec4b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build Executables

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

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
arch: [amd64, 386]

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

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.4

- name: Build
run: |
GOOS=$(echo ${{ matrix.os }} | sed 's/-latest//')
GOARCH=${{ matrix.arch }}
OUTPUT_NAME=shimoExporter-${GOOS}-${GOARCH}
go build -o $OUTPUT_NAME ./shimoExporter/app/main.go
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ matrix.arch }}
path: shimoExporter-${{ matrix.os }}-${{ matrix.arch}}

0 comments on commit 1e3ec4b

Please sign in to comment.