-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (51 loc) · 1.55 KB
/
Copy pathbuild.yml
File metadata and controls
60 lines (51 loc) · 1.55 KB
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
name: Release Binaries
on:
push:
tags:
- 'v*' # Trigger on vx.x.x
permissions:
contents: write # Required to create a release and upload assets
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
binary_name: bbfmux
compile_cmd: g++ -std=c++17 src/bbfenc.cpp src/libbbf.cpp src/xxhash.c -o bbfmux -pthread
- os: windows-latest
binary_name: bbfmux.exe
compile_cmd: g++ -std=c++17 src/bbfenc.cpp src/libbbf.cpp src/xxhash.c -o bbfmux.exe -municode
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Compile
run: ${{ matrix.compile_cmd }}
- name: Upload temporary artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-bin
path: ${{ matrix.binary_name }}
create_release:
name: Create GitHub Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: bin-temp
merge-multiple: true
- name: Create Release and Upload Assets
uses: softprops/action-gh-release@v2
with:
files: |
bin-temp/bbfmux
bin-temp/bbfmux.exe
generate_release_notes: true # Automatically summarizes commits since last release
draft: false
prerelease: false