forked from mandiant/macos-UnifiedLogs
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.53 KB
/
Copy pathrelease.yml
File metadata and controls
55 lines (48 loc) · 1.53 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
name: Release Example Binary
on:
push:
tags:
- v[0-9]+.*
permissions: {}
jobs:
build:
name: Release example binary
strategy:
matrix:
info:
- os: "macOS-latest"
target: "x86_64-apple-darwin"
- os: "macOS-latest"
target: "aarch64-apple-darwin"
- os: "windows-latest"
target: "x86_64-pc-windows-msvc"
- os: "ubuntu-latest"
target: "x86_64-unknown-linux-gnu"
runs-on: ${{ matrix.info.os }}
permissions:
contents: write # Used to publish releases
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5
with:
persist-credentials: false
- name: Setup Stable Rust toolchain
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 #v2025.09.23
with:
components: clippy, rustfmt
toolchain: stable
targets: ${{ matrix.info.target }}
- name: Build Example
run: cd examples && cargo build --release --target ${{ matrix.info.target }}
- name: Package Example
shell: bash
env:
NAME: unifiedlog_iterator
TARGET: ${{ matrix.info.target }}
run: .github/scripts/package.sh
- name: Release
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 #v2.3.3
with:
files: "unifiedlog_iterator*"
name: "${{ vars.GITHUB_REF_NAME }} - Released!"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}