1
1
Fork 0
mirror of https://github.com/DNSCrypt/encrypted-dns-server.git synced 2024-05-09 07:56:03 +02:00
encrypted-dns-server/.github/workflows/rust.yml

29 lines
788 B
YAML
Raw Normal View History

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/
cp README.md example-encrypted-dns.toml encrypted-dns/
- 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