-
Notifications
You must be signed in to change notification settings - Fork 42
Switch to using GitHub Actions for CI #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ea49a17
Switch to using GitHub Actions for CI
robyoung 02e2654
Follow gha approach used in other book repos
robyoung 5377779
Address review comments
robyoung ebc6f18
Update .github/workflows/ci.yaml
adamgreig cf4391c
CI: Create cache-bin when downloading gcc
adamgreig 111a8d5
CI: Install thumbv7m-none-eabi target
adamgreig b906053
CI: Add llvm-tools-preview to installed toolchain for cargo-binutils
adamgreig 23f639b
CI: Fix nm invocation to use full path.
adamgreig cd0c87a
CI: Update golden objdumps for new nm syntax
adamgreig 66af410
CI: Fix arm-none-eabi-gcc installation
adamgreig 3923130
CI: Fix nightly build
adamgreig 8847806
CI: Update exceptions CI for latest Rust and GCC
adamgreig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master, staging, trying] | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
rust: | ||
- stable | ||
- beta | ||
- nightly | ||
- 1.51.0 # Minimum supported rust version (MSRV) | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Install additional tooling | ||
run: | | ||
bash ci/install.sh | ||
echo "PATH=$PATH:$PWD/gcc/bin:$PWD/qemu" >> $GITHUB_ENV | ||
env: | ||
RUST_VERSION: ${{ matrix.rust }} | ||
|
||
- name: Test | ||
run: bash ci/script.sh | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
adamgreig marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
needs: [build] | ||
|
||
if: github.ref == 'refs/heads/master' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install mdbook | ||
run: sh ci/install-mdbook.sh | ||
|
||
- name: Build the book | ||
run: mdbook build | ||
|
||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: book |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -eo pipefail | ||
|
||
|
||
tag=$(git ls-remote --tags --refs --exit-code https://github.com/rust-lang/mdbook \ | ||
| grep -Eo 'v[0-9.]+$' \ | ||
| sort --version-sort \ | ||
| tail -n1) | ||
|
||
curl -LSfs https://japaric.github.io/trust/install.sh | \ | ||
sh -s -- --git rust-lang/mdbook --tag $tag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've mostly specified specific versions just to ensure there are no surprises when
-latest
next changes. Same deal applies to the deploy job below, though you could also make that a final and optional step in the build job, I don't mind either way.