-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.17 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
name: Build and Release
permissions:
contents: write
on:
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- '.gitignore'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
override: true
- name: Add x86_64-unknown-none target
run: rustup target add x86_64-unknown-none
- name: Install cbindgen
run: cargo install cbindgen
- name: Add rust-src component
run: rustup component add rust-src
- name: Build general release
run: |
cargo build --release
mv target/x86_64-unknown-none/release/libelf_parse.a libelf_parse-x86_64.a
mv target/i686-unknown-none/release/libelf_parse.a libelf_parse-i686.a
- name: Generate header
run: cbindgen --output elf_parse.h
- name: Release artifacts
uses: softprops/action-gh-release@v2
with:
name: Nightly build
tag_name: release
files: |
libelf_parse-x86_64.a
libelf_parse-i686.a
elf_parse.h