Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
b31e262
Add .vscode to ignored files
jerusdp Sep 13, 2021
7f0e12e
Script to check cersion
jerusdp Sep 13, 2021
18f24ac
Check the latest R build
jerusdp Sep 13, 2021
2c5cec8
Check the Rust version
jerusdp Sep 13, 2021
b45f571
Schedule Github Actions Version Check
jerusdp Sep 13, 2021
1cb9025
FIX: On speficication
jerusdp Sep 13, 2021
54b76fb
Update check.yml
jerusdp Sep 13, 2021
afdedec
Merge pull request #1 from jerusdp/latest
jerusdp Sep 13, 2021
b511fbd
Test using my docker
jerusdp Sep 13, 2021
a8a2778
Scheduled test for top of next hour
jerusdp Sep 13, 2021
5788290
manual trigger option
jerusdp Sep 13, 2021
7980f14
Update check.yml
jerusdp Sep 13, 2021
031cf8d
Create an issue
jerusdp Sep 13, 2021
22dd6f8
Merge branch 'master' of github.com:jerusdp/lambda-rust
jerusdp Sep 13, 2021
07d006b
Update check.yml
jerusdp Sep 13, 2021
b2b6e24
Update check.yml
jerusdp Sep 13, 2021
c29d947
Update check.yml
jerusdp Sep 13, 2021
25f1118
Update check.yml
jerusdp Sep 13, 2021
25009e1
Update check.yml
jerusdp Sep 13, 2021
28970f9
Update check.yml
jerusdp Sep 13, 2021
f94da9e
Update check.yml
jerusdp Sep 13, 2021
82e5485
Update check.yml
jerusdp Sep 13, 2021
4cbb4ce
Update check.yml
jerusdp Sep 13, 2021
2ef0d93
FIX: Update to write issue on failure
jerusdp Sep 13, 2021
7a23dbb
Subject
jerusdp Sep 13, 2021
c45e592
FIX - too much copying :(
jerusdp Sep 13, 2021
78e507d
echo stable
jerusdp Sep 13, 2021
41a8ce5
attempt to use gh to create the issue within the shell script
jerusdp Sep 13, 2021
2abdf53
Wrong variable being transferred
jerusdp Sep 13, 2021
10a671d
Use gh instead of action
jerusdp Sep 13, 2021
ba1cdf0
Use gh instead of action
jerusdp Sep 13, 2021
6f55fa8
FIX missing step indicator
jerusdp Sep 13, 2021
a9f159f
FIXadd checkout to get auth?
jerusdp Sep 13, 2021
98f58ee
FIX: Add environment with GITHUB_TOKEN
jerusdp Sep 13, 2021
c9d8ee0
FIX: Use gh to clone instead of checkout
jerusdp Sep 13, 2021
a78ce53
FIX Use checkout
jerusdp Sep 13, 2021
340b481
Add label to issue
jerusdp Sep 13, 2021
dc545df
Change label to existing lable
jerusdp Sep 14, 2021
2c86d65
Create issue on the repository without checking out by using -R flag
jerusdp Sep 14, 2021
9c19ad7
FIX spelling of workflow_dispatch
jerusdp Sep 14, 2021
ae04609
Merge branch 'master' into latest
jerusdp Sep 14, 2021
e615839
FIX wayward space in -R
jerusdp Sep 14, 2021
58599b9
Merge branch 'latest' of github.com:jerusdp/lambda-rust into latest
jerusdp Sep 14, 2021
59d3085
Update cron schedule to run early Tuesday morning
jerusdp Sep 14, 2021
c54e3a3
Restore Makefile after testing
jerusdp Sep 14, 2021
438171c
Added missing newlines
jerusdp Sep 30, 2021
680fa57
Added missing newlines
jerusdp Sep 30, 2021
5bc6605
Resolve conflict with Makefile updated by nightly
jerusdp Sep 30, 2021
1642087
Merge branch 'master' into latest
jerusdp Sep 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check

on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 3'

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check Rust Version
- run: make check
create_issue:
runs-on: ubuntu-latest
needs: check
if: always() && (needs.check.result == 'failure')
steps:
- run: gh issue create --title "Time to update to Rust" --body "Build update for next version of Rust" --label "enhancement" -R $GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tests/test-*/test-out.log
target
.DS_Store
.vscode
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN yum install -y jq openssl-devel
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| CARGO_HOME=/cargo RUSTUP_HOME=/rustup sh -s -- -y --profile minimal --default-toolchain $RUST_VERSION
ADD build.sh /usr/local/bin/
ADD latest.sh /usr/local/bin/
VOLUME ["/code"]
WORKDIR /code
ENTRYPOINT ["/usr/local/bin/build.sh"]
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ debug: build
-v ${HOME}/.cargo/git:/cargo/git \
--entrypoint=/bin/bash \
$(REPO):$(TAG)

check:
$(DOCKER) run --rm \
--entrypoint=/usr/local/bin/latest.sh \
$(REPO)
15 changes: 15 additions & 0 deletions latest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash -eux

export CARGO_HOME="/cargo"
export RUSTUP_HOME="/rustup"

# shellcheck disable=SC1091
source /cargo/env

rustup toolchain install stable --profile=minimal
STABLE=$(rustup check | grep stable | grep -E "[0-9]+\.[0-9]+\.[0-9]+" -o)
DEFAULT=$(rustup show | grep -m 1 default | grep -E "[0-9]+\.[0-9]+\.[0-9]+" -o)

if [ "${STABLE}" == "${DEFAULT}" ]; then exit 0
else exit 1
fi