Skip to content

Commit

Permalink
Fix deployments.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmaurice committed Oct 12, 2024
1 parent c625a0e commit 013ac05
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 34 deletions.
60 changes: 33 additions & 27 deletions .github/workflows/build-exporter-binary.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# name: Exporter Binary Build
name: Exporter Binary Build

# on:
on:
workflow_dispatch:
inputs:
build:
description: 'Build the exporter binary'
required: true
default: 'true'
# push:
# branches: ["main"]
# paths:
Expand All @@ -9,31 +15,31 @@
# pull_request:
# branches: ["main"]

# jobs:
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# GOOS: [linux, windows, darwin]
# GOARCH: [amd64, arm64]
# steps:
# - name: Checkout GitHub Action
# uses: actions/checkout@v4
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
GOOS: [linux, windows, darwin]
GOARCH: [amd64, arm64]
steps:
- name: Checkout GitHub Action
uses: actions/checkout@v4

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

# - name: Build for ${{ matrix.GOOS }}-${{ matrix.GOARCH }}
# working-directory: ./satisfactory-exporter
# env:
# GOOS: ${{ matrix.GOOS }}
# GOARCH: ${{ matrix.GOARCH }}
# run: go build -o satisfactory-exporter -ldflags "-s -w" main.go
- name: Build for ${{ matrix.GOOS }}-${{ matrix.GOARCH }}
working-directory: ./satisfactory-exporter
env:
GOOS: ${{ matrix.GOOS }}
GOARCH: ${{ matrix.GOARCH }}
run: go build -o satisfactory-exporter -ldflags "-s -w" main.go

# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: satisfactory-exporter-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
# path: ./satisfactory-exporter/satisfactory-exporter
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: satisfactory-exporter-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
path: ./satisfactory-exporter/satisfactory-exporter
20 changes: 13 additions & 7 deletions .github/workflows/build-metadata-binary.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: Metadata Binary Build

on:
push:
branches: ["main"]
paths:
- satisfactory-metadata/**
- .github/workflows/build-metadata-binary.yml
pull_request:
branches: ["main"]
workflow_dispatch:
inputs:
build:
description: 'Build the exporter binary'
required: true
default: 'true'
# push:
# branches: ["main"]
# paths:
# - satisfactory-metadata/**
# - .github/workflows/build-metadata-binary.yml
# pull_request:
# branches: ["main"]

jobs:
build:
Expand Down

0 comments on commit 013ac05

Please sign in to comment.