-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (51 loc) · 2.26 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
53
54
55
56
57
58
on:
push:
branches:
- release*
tags:
- 'v*'
name: release
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Datalog generators
run: |
cargo run --bin treeedbgen-souffle-c -- --output treeedb-c.dl --prefix c
cargo run --bin treeedbgen-souffle-csharp -- --output treeedb-csharp.dl --prefix csharp
cargo run --bin treeedbgen-souffle-java -- --output treeedb-java.dl --prefix java
cargo run --bin treeedbgen-souffle-javascript -- --output treeedb-javascript.dl --prefix js
cargo run --bin treeedbgen-souffle-rust -- --output treeedb-rust.dl --prefix rs
cargo run --bin treeedbgen-souffle-souffle -- --output treeedb-souffle.dl --prefix dl
cargo run --bin treeedbgen-souffle-swift -- --output treeedb-swift.dl --prefix swift
- name: Deps
run: |
sudo apt-get install -y musl-tools
rustup target add x86_64-unknown-linux-musl
- name: Build static executables
run: |
make static
mkdir exe/
cp target/x86_64-unknown-linux-musl/release/treeedb-c exe/
cp target/x86_64-unknown-linux-musl/release/treeedb-csharp exe/
cp target/x86_64-unknown-linux-musl/release/treeedb-java exe/
cp target/x86_64-unknown-linux-musl/release/treeedb-javascript exe/
cp target/x86_64-unknown-linux-musl/release/treeedb-rust exe/
cp target/x86_64-unknown-linux-musl/release/treeedb-souffle exe/
cp target/x86_64-unknown-linux-musl/release/treeedb-swift exe/
- uses: ncipollo/release-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
artifacts: "exe/treeedb-c,exe/treeedb-csharp,exe/treeedb-java,exe/treeedb-javascript,exe/treeedb-rust,exe/treeedb-souffle,exe/treeedb-swift,treeedb-c.dl,treeedb-csharp.dl,treeedb-java.dl,treeedb-javascript.dl,treeedb-rust.dl,treeedb-souffle.dl,treeedb-swift.dl"
artifactErrorsFailBuild: true
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
# TODO(#22):
# - name: Publish to crates.io
# env:
# CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
# # Only push on actual release tags
# PUSH: ${{ startsWith(github.ref, 'refs/tags/v') }}
# run: |
# cargo publish