-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.41 KB
/
release_binary.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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