Skip to content

init

init #11

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-10.15]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.23
- name: Checkout code
uses: actions/checkout@v4
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Install linux deps
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install libvips-dev
- name: Install macos deps
if: matrix.os == 'macos-10.15'
run: |
brew install vips
- name: Install dependencies
run: |
go mod download
- name: Make binary
run: make
# - name: Make Pixfolio (arm64)
# run: |
# docker run --rm -w /app -v "$(pwd)":/app --platform linux/arm64 webpsh/libvips make
# sudo chown -R $USER:$USER builds/
# - name: Check for ldd version(AMD64 only)
# run: |
# ldd builds/pixfolio-linux-amd64
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
title: "Pixfolio"
files: |
builds/pixfolio-linux-amd64
builds/pixfolio-darwin-amd64