Skip to content

Commit 507fdc7

Browse files
committed
Build and Publish Nightly Rust
Problem Nighlty Rust is updated every night! Solution - Action runs each night at 0200 UTC - Action can be dispatched from console - Run test job and make with environment set to use and tag nigthly - Run publsh job on successful test with nightly - Only run publish on rust-serverless repo - Publish issue if publication fails Note Not configured to run security scan (part of seperate PR).
1 parent b934a75 commit 507fdc7

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/nightly.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,27 @@ on:
66
- cron: '0 2 * * 3'
77

88
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- run: make test
14+
env:
15+
RUST_VERSION: nightly
16+
TAG: nightly
917
publish:
18+
needs: [test]
19+
if: github.repository == "rust-serverless/lambda-rust"
1020
runs-on: ubuntu-latest
1121
steps:
1222
- uses: actions/checkout@v2
13-
name: Build Nightly Rust
14-
- run: make nightly
23+
- run: make publish
24+
env:
25+
RUST_VERSION: nightly
26+
TAG: nightly
1527
create_issue:
1628
runs-on: ubuntu-latest
17-
needs: check
29+
needs: [publish]
1830
if: always() && (needs.publish.result == 'failure')
1931
steps:
2032
- run: gh issue create --title "Nightly publication failed" --body "Nightly publication failed" --label "bug" -R $GITHUB_REPOSITORY

0 commit comments

Comments
 (0)