-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.46 KB
/
x86_64.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
on:
push:
branches:
- 'master'
name: 'Build: GNU + Linux (x86_64)'
jobs:
linux_x86-64:
name: GNU + Linux (x86_64)
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v3
- name: Install development dependencies
run: |
sudo apt-get update > /dev/null
sudo apt-get install -qq libssl-dev build-essential > /dev/null
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: x86_64-unknown-linux-gnu
default: true
profile: minimal
- name: Build Vaultist
uses: actions-rs/cargo@v1
with:
use-cross: false
command: build
args: --release --target x86_64-unknown-linux-gnu
- name: Prepare Vaultist for upload
run: |
cd ./target/x86_64-unknown-linux-gnu/release/
strip -v --strip-all ./vaultist
strip -v --strip-all ./libvaultist.so
strip -v --strip-all ./libvaultist.a
chmod +x ./vaultist
tar -cvf x86_64-vaultist.gnu+linux.tar \
vaultist \
libvaultist.so \
libvaultist.a
- name: Upload Vaultist build artifacts to GitHub
uses: actions/upload-artifact@v3
with:
name: x86_64-vaultist.gnu+linux
path: ./target/x86_64-unknown-linux-gnu/release/x86_64-vaultist.gnu+linux.tar
if-no-files-found: error