Skip to content

Commit bd8f77d

Browse files
authored
Merge pull request #106 from makr11st/feature/update_ci_remove_redundant_steps
Remove redundant CI steps, add missing build and build release steps
2 parents 0ae6a58 + b230a1d commit bd8f77d

3 files changed

Lines changed: 43 additions & 64 deletions

File tree

.github/workflows/checks.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ env:
44
CARGO_TERM_COLOR: always
55

66
on:
7-
push:
8-
branches: [ main ] # this should be blocked entirely!
7+
workflow_dispatch:
98
pull_request:
109

1110
jobs:

.github/workflows/ci.yaml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/tests.yaml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,31 @@ on:
99
pull_request:
1010

1111
jobs:
12-
required:
12+
build:
1313
runs-on: ubuntu-latest
14-
name: ubuntu / ${{ matrix.toolchain }}
14+
name: Build Ubuntu / ${{ matrix.toolchain }}
15+
strategy:
16+
matrix:
17+
toolchain: [stable, beta]
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
submodules: true
22+
- name: Install ${{ matrix.toolchain }}
23+
uses: dtolnay/rust-toolchain@master
24+
with:
25+
toolchain: ${{ matrix.toolchain }}
26+
- name: cargo generate-lockfile
27+
if: hashFiles('Cargo.lock') == ''
28+
run: cargo generate-lockfile
29+
- name: cargo build
30+
run: cargo build
31+
- name: cargo build release
32+
run: cargo build --release
33+
34+
test:
35+
runs-on: ubuntu-latest
36+
name: Test Ubuntu / ${{ matrix.toolchain }}
1537
strategy:
1638
matrix:
1739
toolchain: [stable, beta]
@@ -32,6 +54,20 @@ jobs:
3254
- name: cargo test --doc
3355
run: cargo test --locked --all-features --doc | grep 'Missing FALCON_CLIENT_ID environment variable.'
3456

57+
nightly:
58+
name: Rust nightly
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v3
62+
- uses: dtolnay/rust-toolchain@nightly
63+
with:
64+
components: rust-src
65+
- run: |
66+
cargo test --lib --bins --examples --benches
67+
- run: |
68+
# We expect doc example to fail without Falcon Credentials
69+
cargo test --doc | grep 'Missing FALCON_CLIENT_ID environment variable.'
70+
3571
minimal:
3672
runs-on: ubuntu-latest
3773
name: ubuntu / stable / minimal-versions
@@ -70,5 +106,9 @@ jobs:
70106
- name: cargo generate-lockfile
71107
if: hashFiles('Cargo.lock') == ''
72108
run: cargo generate-lockfile
109+
- name: cargo build
110+
run: cargo build
111+
- name: cargo build release
112+
run: cargo build --release
73113
- name: cargo test
74114
run: cargo test --locked --all-features --all-targets

0 commit comments

Comments
 (0)