An NTP server that Keeps It Simple, Stupid https://github.com/moparisthebest/kiss-ntpd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
695 B

9 months ago
  1. #!/bin/bash
  2. set -exo pipefail
  3. echo "starting build for TARGET $TARGET"
  4. export CRATE_NAME=kiss-ntpd
  5. # cross doesn't actually support stdin/stdout pipes for some reason, skip it for now
  6. DISABLE_TESTS=1
  7. SUFFIX=""
  8. echo "$TARGET" | grep -E '^x86_64-pc-windows-gnu$' >/dev/null && SUFFIX=".exe"
  9. cross rustc --bin kiss-ntpd --target $TARGET --release
  10. # to check how they are built
  11. file "target/$TARGET/release/kiss-ntpd$SUFFIX"
  12. # if this commit has a tag, upload artifact to release
  13. strip "target/$TARGET/release/kiss-ntpd$SUFFIX" || true # if strip fails, it's fine
  14. mkdir -p release
  15. mv "target/$TARGET/release/kiss-ntpd$SUFFIX" "release/kiss-ntpd-$TARGET$SUFFIX"
  16. echo 'build success!'
  17. exit 0