This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
generated from stacks-network/.github
-
Notifications
You must be signed in to change notification settings - Fork 22
85 lines (70 loc) · 2.03 KB
/
daily.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Daily Workflow
on:
# Run every week day at 12 PM UTC
schedule:
- cron: "0 12 * * 1-5"
# Allow workflow to be triggered manually.
workflow_dispatch:
env:
BRANCH: "main"
CARGO_TERM_COLOR: always
jobs:
# Generate lockfile separately so that each OS uses the same locked
# versions. Using ubuntu-latest because it is the cheapest.
generate-lockfile-and-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.BRANCH }}
- name: Generate lockfile
run: cargo generate-lockfile -v
- name: Install cargo make
uses: davidB/rust-cargo-make@v1
with:
version: "0.36.13"
#- name: Audit
# run: cargo make --profile github-actions audit
- uses: actions/upload-artifact@v3
with:
name: Cargo.lock
path: Cargo.lock
intense-tests:
needs: generate-lockfile-and-audit
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install cargo make
uses: davidB/rust-cargo-make@v1
with:
version: "0.36.13"
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ env.BRANCH }}
- name: Test with release
run: cargo make --profile github-actions test
publish:
needs: intense-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.BRANCH }}
- name: Publish
uses: katyo/publish-crates@v2
with:
args: "--verbose"
publish-delay: 1000 # Wait 1 second between publishing dependencies.
ignore-unpublished-changes: true
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
devenv:
timeout-minutes: 120
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build devenv containers
run: ./devenv/build.sh