Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cherrychip8293 authored Aug 18, 2024
1 parent 7a16bae commit 9f018ca
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build bedrockpack

on:
- push

jobs:
linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Build bedrockpack
run: export GOOS=linux && export GOARCH=amd64 && go build -o bedrockpack main.go

- name: Upload bedrockpack
uses: actions/upload-artifact@v4
with:
name: bedrockpack-linux
path: bedrockpack
retention-days: 30
windows:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Build bedrockpack
run: export GOOS=windows && export GOARCH=amd64 && go build -o bedrockpack.exe main.go

- name: Upload bedrockpack
uses: actions/upload-artifact@v4
with:
name: bedrockpack-windows
path: bedrockpack.exe
retention-days: 30

0 comments on commit 9f018ca

Please sign in to comment.