Skip to content

build(makefile): remove redundant targets #15

build(makefile): remove redundant targets

build(makefile): remove redundant targets #15

Workflow file for this run

name: CI
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
checks:
name: Run Checks
uses: ./.github/workflows/checks.yml
build:
name: Build Cross-Platform
runs-on: ubuntu-latest
needs: [checks]
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build optimized cross-platform binary
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
EXT=""
if [ "$GOOS" = "windows" ]; then
EXT=".exe"
fi
make release
mv build/emojify "emojify-$GOOS-$GOARCH$EXT"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: emojify-${{ matrix.goos }}-${{ matrix.goarch }}
path: emojify-*
retention-days: 30