-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.33 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
on:
push:
branches:
- master
pull_request:
jobs:
build_and_upload:
name: Build and archive artifacts
runs-on: ${{ matrix.os }}
env:
CARGO_TERM_COLOR: always
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Get Rust LLVM target triple
id: get_target
shell: bash
run: |
echo -n 'name=' >> "${GITHUB_OUTPUT}"
RUSTC_BOOTSTRAP=1 rustc -Z unstable-options --print target-spec-json \
| jq -r '."llvm-target"' \
>> "${GITHUB_OUTPUT}"
- name: Install clippy
run: rustup component add clippy
- name: Run tests in debug mode
env:
RUST_BACKTRACE: 1
TERM: xterm
run: |
cargo clippy --workspace -- -D warnings
cargo test --workspace
- name: Build in debug mode
run: cargo build --verbose
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: ddns-updater-${{ steps.get_target.outputs.name }}
path: |
target/debug/ddns-updater
target/debug/ddns-updater.exe
target/debug/ddns_updater.pdb