2
0
mirror of https://github.com/jedisct1/encrypted-dns-server synced 2024-11-10 19:10:25 +00:00
encrypted-dns-server/.github/workflows/rust.yml
Frank Denis 4dbdfaca5c lto=fat
2019-09-22 12:54:44 +02:00

29 lines
780 B
YAML

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
run: |
echo 'lto = "fat"' >> Cargo.toml
env RUSTFLAGS="-C link-arg=-s" cargo build --release
mkdir encrypted-dns
mv target/release/encrypted-dns encrypted-dns/
cp README.md encrypted-dns.toml encrypted-dns/
- uses: actions/upload-artifact@master
with:
name: encrypted-dns-linux-x86_64
path: encrypted-dns