mirror of
https://github.com/DNSCrypt/doh-server.git
synced 2025-04-03 04:57:37 +03:00
CI simplification
This commit is contained in:
parent
dbc5dc702f
commit
03581234b5
2 changed files with 23 additions and 36 deletions
36
.github/workflows/rust.yml
vendored
36
.github/workflows/rust.yml
vendored
|
@ -1,36 +0,0 @@
|
|||
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: Install cargo-deb
|
||||
run: cargo install --debug cargo-deb
|
||||
- name: Build
|
||||
run: |
|
||||
env RUSTFLAGS="-C link-arg=-s" cargo build --release --features=tls
|
||||
mkdir doh-proxy
|
||||
mv target/release/doh-proxy doh-proxy/
|
||||
cp README.md doh-proxy/
|
||||
- name: Debian package
|
||||
run: |
|
||||
cargo deb
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: doh-proxy-linux-x86_64
|
||||
path: doh-proxy
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: debian
|
||||
path: target/debian
|
23
.github/workflows/test.yml
vendored
Normal file
23
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Rust
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: hecrj/setup-rust-action@master
|
||||
with:
|
||||
rust-version: stable
|
||||
- name: Check Cargo availability
|
||||
run: cargo --version
|
||||
- name: Check Rustup default toolchain
|
||||
run: rustup default | grep stable
|
||||
- name: Build without default features
|
||||
run: |
|
||||
env RUSTFLAGS="-C link-arg=-s" cargo check --no-default-features
|
||||
- name: Build with default features
|
||||
run: |
|
||||
env RUSTFLAGS="-C link-arg=-s" cargo check
|
Loading…
Add table
Add a link
Reference in a new issue