2019-09-20 12:03:49 +02:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: hecrj/setup-rust-action@master
|
|
|
|
with:
|
|
|
|
rust-version: nightly
|
|
|
|
- name: Check Cargo availability
|
|
|
|
run: cargo --version
|
|
|
|
- name: Check Rustup default toolchain
|
|
|
|
run: rustup default | grep nightly
|
|
|
|
- name: Build
|
2019-09-22 01:20:34 +02:00
|
|
|
run: |
|
2019-09-22 12:54:44 +02:00
|
|
|
echo 'lto = "fat"' >> Cargo.toml
|
2019-09-22 10:17:50 +02:00
|
|
|
env RUSTFLAGS="-C link-arg=-s" cargo build --release
|
2019-09-22 01:21:08 +02:00
|
|
|
mkdir encrypted-dns
|
|
|
|
mv target/release/encrypted-dns encrypted-dns/
|
2019-10-01 17:35:31 +02:00
|
|
|
cp README.md example-encrypted-dns.toml encrypted-dns/
|
2019-09-22 01:00:42 +02:00
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
2019-09-22 01:34:39 +02:00
|
|
|
name: encrypted-dns-linux-x86_64
|
2019-09-22 01:20:34 +02:00
|
|
|
path: encrypted-dns
|