Skip to content

Commit 1642087

Browse files
authored
Merge branch 'master' into latest
2 parents 5bc6605 + a6093d0 commit 1642087

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/workflows/nightly.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ check:
3030
$(DOCKER) run --rm \
3131
--entrypoint=/usr/local/bin/latest.sh \
3232
$(REPO)
33-

tests/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
55
# Root directory of the repository
66
DIST=$(cd "$HERE"/..; pwd)
7-
IMAGE=${1:-rustserverless/lambda-rust}
7+
: "${IMAGE:=rustserverless/lambda-rust}"
88

99
source "${HERE}"/bashtest.sh
1010

0 commit comments

Comments
 (0)