Skip to content

init

init #12

Workflow file for this run

name: Release Binaries
on:
push:
tags:
- '*'
jobs:
build:
name: Create Release
runs-on: ${{ matrix.os }}
env:
CGO_CFLAGS_ALLOW: -Xpreprocessor
strategy:
matrix:
os: [ubuntu-latest, macOS-13]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.23
- name: Checkout code
uses: actions/checkout@v4
- name: Install linux deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install libvips-dev
- name: Install macos deps
if: matrix.os == 'macos-13'
run: |
brew install vips
- name: Install dependencies
run: |
go mod download
- name: Make binary
run: make
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: build-${{ matrix.os }}
path: ./build
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-ubuntu-latest
path: ./builds/pixfolio-linux-amd64
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: build-macOS-13
path: ./builds/pixfolio-darwin-amd64
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "Pixfolio"
files: |
builds/pixfolio-linux-amd64
builds/pixfolio-darwin-amd64