mirror of
https://github.com/Myzel394/simple-seam-carving-in-go.git
synced 2025-06-18 15:35:30 +02:00
feat(ci-cd): Add debug release
This commit is contained in:
parent
466be3b220
commit
9e456c1feb
38
.github/workflows/build-debug.yaml
vendored
Normal file
38
.github/workflows/build-debug.yaml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
name: Build debug
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build-server:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
arch: ["amd64", "arm"]
|
||||
os: ["darwin", "linux"]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: stable
|
||||
|
||||
- name: Build arch
|
||||
run: env GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o seam-carving-${{ matrix.os }}-${{ matrix.arch }} -ldflags="-s -w" .
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: seam-carving-${{ matrix.os }}-${{ matrix.arch }}
|
||||
path: seam-carving-${{ matrix.os }}-${{ matrix.arch }}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user