File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Build Nightly Rust
2+
3+ on :
4+ workflow_dispatch :
5+ schedule :
6+ - cron : ' 0 2 * * 3'
7+
8+ jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - run : |
14+ make build
15+ make test
16+ env:
17+ RUST_VERSION: nightly
18+ TAG: nightly
19+ IMAGE: 'rustserverless/lambda-rust:nightly'
20+ publish :
21+ needs : [test]
22+ if : github.repository == 'rust-serverless/lambda-rust'
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v2
26+ - run : make publish
27+ env :
28+ RUST_VERSION : nightly
29+ TAG : nightly
30+ create_issue :
31+ runs-on : ubuntu-latest
32+ needs : [publish]
33+ if : always() && (needs.publish.result == 'failure')
34+ steps :
35+ - run : gh issue create --title "Nightly publication failed" --body "Nightly publication failed" --label "bug" -R $GITHUB_REPOSITORY
36+ env :
37+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
38+
Original file line number Diff line number Diff line change 3030 $(DOCKER ) run --rm \
3131 --entrypoint=/usr/local/bin/latest.sh \
3232 $(REPO )
33-
Original file line number Diff line number Diff line change 44HERE=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
55# Root directory of the repository
66DIST=$( cd " $HERE " /..; pwd)
7- IMAGE= ${1 :- rustserverless/ lambda-rust}
7+ : " ${IMAGE := rustserverless/ lambda-rust}"
88
99source " ${HERE} " /bashtest.sh
1010
You can’t perform that action at this time.
0 commit comments