chore: add ci
This commit is contained in:
parent
32b7f6c3f0
commit
f35a532633
16
.build.yml
Normal file
16
.build.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
image: fedora/33
|
||||||
|
packages:
|
||||||
|
- curl
|
||||||
|
- tar
|
||||||
|
- xz
|
||||||
|
tasks:
|
||||||
|
- install-nix: |
|
||||||
|
curl -L https://nixos.org/nix/install | sh -s
|
||||||
|
echo 'source $HOME/.nix-profile/etc/profile.d/nix.sh' >> $HOME/.buildenv
|
||||||
|
- build: |
|
||||||
|
cd remote-party-finder
|
||||||
|
nix-shell --command 'cargo build --release'
|
||||||
|
strip -s target/release/remote-party-finder
|
||||||
|
nix-shell --command 'patchelf --remove-rpath --set-interpreter /usr/lib64/ld-linux-x86-64.so.2 target/release/remote-party-finder'
|
||||||
|
artifacts:
|
||||||
|
- remote-party-finder/target/release/remote-party-finder
|
|
@ -6,5 +6,6 @@ pkgs.mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
(pkgs.rustChannelOf { date = "2021-09-20"; channel = "nightly"; }).rust
|
(pkgs.rustChannelOf { date = "2021-09-20"; channel = "nightly"; }).rust
|
||||||
pkgs.gcc
|
pkgs.gcc
|
||||||
|
pkgs.patchelf
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user