Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

finalize cronjob #37

Merged
merged 3 commits into from
Feb 10, 2024
Merged
Changes from all commits
Commits
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
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ on:
branches: ['master']
schedule:
- cron: '10 2 * * *' # At 02:10 UTC every day (a bit after rustup-components-history).
- cron: '20,35,50 14,15 * * *' # for testing

jobs:
test-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup environment
run: bash ./ci-setup.sh
- name: Test
Expand All @@ -22,7 +21,7 @@ jobs:
test-alloc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup environment
run: bash ./ci-setup.sh
- name: Test
Expand All @@ -31,7 +30,7 @@ jobs:
test-std:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup environment
run: bash ./ci-setup.sh
- name: Test
Expand All @@ -40,7 +39,7 @@ jobs:
test-simd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup environment
run: bash ./ci-setup.sh
- name: Test
Expand All @@ -49,7 +48,7 @@ jobs:
test-stdarch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup environment
run: bash ./ci-setup.sh
- name: Test
Expand Down Expand Up @@ -79,7 +78,7 @@ jobs:
needs: [success]
if: github.event_name == 'schedule'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: setup bot git name and email
run: |
git config --global user.name 'The Miri Conjob Bot'
Expand All @@ -88,6 +87,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# If this is not the first of the month, stop here.
if [[ $(date -u +%d) != "01" ]]; then
echo "Only creating PR on the first of each month."
exit 0
fi
# Create commit
DATE=$(date -u +%Y-%m-%d)
echo "nightly-$DATE" > rust-version
Expand Down