-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (47 loc) · 1.43 KB
/
release.yml
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
name: Release
on:
push:
tags:
- "*"
jobs:
release:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-14, windows-latest]
include:
- os: ubuntu-latest
target_name: zipstream
asset_suffix: linux-amd64
- os: macos-latest
target_name: zipstream
asset_suffix: darwin-amd64
- os: macos-14
target_name: zipstream
asset_suffix: darwin-aarch64
- os: windows-latest
target_name: zipstream.exe
asset_suffix: windows-amd64.exe
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Install dependencies
run: shards install --production
- name: Compile release
env:
LLVM_CONFIG: /usr/local/opt/llvm/bin/llvm-config
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
run: |
crystal -v
shards build --release
- name: Add binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/${{ matrix.target_name }}
asset_name: zipstream_${{ github.ref_name }}_${{ matrix.asset_suffix }}
tag: ${{ github.ref }}
overwrite: true