-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
But keep using a generated LLVM/Clang triple mapping for now.
- Loading branch information
Showing
9 changed files
with
1,061 additions
and
3,804 deletions.
There are no files selected for viewing
This file contains 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,49 @@ | ||
name: Test nightly `rustc` targets and add issue comment if changed | ||
|
||
on: | ||
workflow_dispatch: # Allow running on-demand | ||
schedule: | ||
- cron: '0 3 * * 4' | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- 'dev-tools/gen-target-info/**' | ||
|
||
jobs: | ||
regenerate: | ||
if: github.repository_owner == 'rust-lang' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: true | ||
|
||
- name: Install current nightly Rust | ||
run: | | ||
rustup toolchain install nightly --no-self-update --profile minimal | ||
rustup default nightly | ||
- run: cargo update | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Test with `RUSTFLAGS=--cfg=rustc_target_test cargo test --lib` | ||
id: test | ||
continue-on-error: true # We want to open an issue if it fails | ||
run: RUSTFLAGS=--cfg=rustc_target_test cargo test --lib 2>&1 | tee test_output.txt | ||
|
||
- name: Open issue if test failed | ||
if: steps.test.outcome == 'failure' | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh issue comment 12 --body " | ||
Failed parsing `rustc` target on `$(rustc --version)`. | ||
<details><summary>Test output</summary> | ||
<p> | ||
\`\`\` | ||
$(cat test_output.txt) | ||
\`\`\` | ||
</p> | ||
</details> | ||
" --head $(git branch --show-current) |
This file contains 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 |
---|---|---|
|
@@ -3,6 +3,3 @@ pub use target_specs::*; | |
|
||
mod read; | ||
pub use read::*; | ||
|
||
mod write; | ||
pub use write::*; |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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
Oops, something went wrong.