-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (35 loc) · 1004 Bytes
/
Copy pathrelease.yml
File metadata and controls
37 lines (35 loc) · 1004 Bytes
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
name: Release
on:
push:
tags: ["v*"]
jobs:
build:
strategy:
matrix:
include:
- target: aarch64-apple-darwin
os: macos-14
archive: engraph-macos-arm64.tar.gz
- target: x86_64-apple-darwin
os: macos-13
archive: engraph-macos-x86_64.tar.gz
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
archive: engraph-linux-x86_64.tar.gz
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- run: cargo build --release --target ${{ matrix.target }}
- name: Archive binary
run: |
cd target/${{ matrix.target }}/release
tar czf ../../../${{ matrix.archive }} engraph
cd ../../..
- uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.archive }}