-
Notifications
You must be signed in to change notification settings - Fork 97
45 lines (37 loc) · 1.29 KB
/
dev-debian.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
name: Dev Debian package
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
release:
name: build and release
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.SUBMODULE_CHECKOUT }}
- name: install system tools
run: |
sudo apt-get update
sudo apt-get install -y musl-tools protobuf-compiler gcc-multilib \
protobuf-compiler libssl-dev pkg-config build-essential
- name: install cargo binstall
run: |
curl -L --proto '=https' --tlsv1.2 -sSf\
https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- name: install cargo binaries
run: |
cargo binstall --no-confirm --no-symlinks cargo-deb
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl
- name: build project release
working-directory: ./nexus
run: cargo build --release --target=x86_64-unknown-linux-musl
- name: create peerdb-server deb package
working-directory: ./nexus/
run: cargo deb --target=x86_64-unknown-linux-musl -p peerdb-server --no-build