chore: add ci

This commit is contained in:
Anna 2021-10-04 01:04:11 -04:00
parent 32b7f6c3f0
commit f35a532633
2 changed files with 17 additions and 0 deletions

16
.build.yml Normal file
View 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

View File

@ -6,5 +6,6 @@ pkgs.mkShell {
buildInputs = [
(pkgs.rustChannelOf { date = "2021-09-20"; channel = "nightly"; }).rust
pkgs.gcc
pkgs.patchelf
];
}