Commit Graph

47 Commits

Author SHA1 Message Date
liushuyu
461bf1369f
CI: catch malformed test cases
Signed-off-by: Zixing Liu <liushuyu011@gmail.com>
2022-04-25 16:08:24 -06:00
liushuyu
82c045ecfe
CI: do not push Docker image ...
... when the workflow is ran in a forked repository

Signed-off-by: Zixing Liu <liushuyu011@gmail.com>
2022-04-18 03:41:07 -06:00
bors[bot]
c1639be8bb
Merge #1114
1114: rust: Use -Otarget when building and logging warnings r=philberty a=simonpcook

This will provide some synchronization for output lines, and so will
make comparisons with known warnings as part of CI more reliable.



Co-authored-by: Simon Cook <simon.cook@embecosm.com>
2022-04-13 10:10:21 +00:00
Simon Cook
addf65ddfa rust: Use -Otarget when building and logging warnings
This will provide some synchronization for output lines, and so will
make comparisons with known warnings as part of CI more reliable.
2022-04-13 08:34:30 +02:00
Simon Cook
649f6640c6 rust: Clang/macOS Testing
This adds a version of the build-and-check job that runs with clang on
macOS.
2022-04-12 18:03:58 +02:00
Arthur Cohen
e824a0835b ci: Run tests with gccrs compiled under gcc-4.8 2022-03-29 10:22:53 +02:00
Arthur Cohen
c1cc931f97 ci: Add job for building gccrs with older gcc
As Thomas Schwinge pointed out, GCC 4.8 is the minimum version to be
used for building current GCC, meaning that we should make an effort to
support it before we consider upstreaming or backporting. The main
differences are probably a less powerful standard template library or
small compilation differences.
2022-03-24 11:05:27 +01:00
Thomas Schwinge
f91f637652 Tune '.github/workflows/ccpp.yml:jobs.build-and-check', 'Check for new warnings' step
Run it in scratch directory, too, to not pollute the pristine sources
directory.  Point to <https://github.com/Rust-GCC/gccrs/pull/1026> in case of
failure.
2022-03-22 12:17:23 +01:00
Thomas Schwinge
10ff5d5507 Merge 'Build logs' into 'Build' in '.github/workflows/ccpp.yml:jobs.build-and-check'
This avoids the supposed issue that in case that 'make' fails, the whole
'jobs.build-and-check' stops, and 'Build logs' isn't executed, and thus there's
no indication in the GitHub UI why 'make' failed.

Using a shell pipeline is OK; the exit code of 'make' isn't lost, as per
<https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell>,
'bash' is being run with '-o pipefail'.
2022-03-22 12:17:23 +01:00
Thomas Schwinge
246fb48cbb Force 'LC_ALL=C.UTF-8' for all steps of '.github/workflows/ccpp.yml:jobs.build-and-check'
That's what I use in my local development enviroment, and I suppose I'll
be the main one touching this file semi-regularly in context of
<https://github.com/Rust-GCC/gccrs/issues/247> "Rebasing against GCC".
2022-03-22 12:17:23 +01:00
Thomas Schwinge
202e61bc2d Force 'LC_ALL=C' for all steps of '.github/workflows/ccpp.yml:jobs.build-and-check' 2022-03-22 09:55:43 +01:00
CastilloDel
60d1fd533c Add a check for new warnings to the CI
This should prevent new warnings from appearing silently

Signed-off-by: Daniel del Castillo delcastillodelarosadaniel@gmail.com
2022-03-20 09:42:41 +00:00
Arthur Cohen
737873ca87 ci: Do not allow unresolved test cases 2022-02-21 16:39:06 +01:00
M V V S Manoj Kumar
73a0903c15
Merge branch 'Rust-GCC:master' into master 2021-11-20 08:01:36 +05:30
bors[bot]
57b10aef62
Merge #795
795: Running `clang-format` locally [#242] r=philberty a=tschwinge

Apparently everyone but me knows how to do that; I'm now documenting it for my
own future use.


Co-authored-by: Thomas Schwinge <thomas@codesourcery.com>
2021-11-07 11:21:04 +00:00
@mvvsmk
9c4e3db778 Added Remark.yml and .remarkrc
Addresses #487
Remark.yml contains the workflow and .remarkrc is the linter's config file.
Signed-off-by: M V V S Manoj Kumar <mvvsmanojkumar@gmail.com>
2021-11-06 20:15:06 +05:30
Philip Herron
5074f89f4f Remove clang-format from bors 2021-11-05 17:36:50 +00:00
Thomas Schwinge
c936060b86 Running clang-format locally [#242]
Apparently everyone but me knows how to do that; I'm now documenting it for my
own future use.
2021-11-05 12:14:18 +01:00
Ben Boeckel
e0d9dde2f2 gha: save check-rust results as artifacts
They will stick around for 90 days (as per GitHub default limits).

     https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts

Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2021-11-01 19:44:23 -04:00
Thomas Schwinge
8545a93929 Align DCO wording in '.github/PULL_REQUEST_TEMPLATE.md'
... to that used in 'CONTRIBUTING.md'.
2021-10-14 10:32:55 +02:00
Philip Herron
535a824bf7 GCC allows for the DCO sign-off.
This updates the contributor guide to let people know the update applys to
gccrs.

Co-authored-by: CohenArthur <arthur.cohen@epita.fr>
Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
2021-10-13 14:28:23 +01:00
Philip Herron
1eb4d0d3ba Try again for docker image build workflow 2021-09-24 14:51:29 +01:00
Philip Herron
faafe0fb11 Update docker build workflow 2021-09-24 14:47:05 +01:00
Philip Herron
8bb47bcaf1 Add docker image builds though github actions.
Recently dockerhub is now charging for automated builds on dockerhub. This
means we no longer have regular updated docker builds of gccrs.
2021-08-11 10:43:27 +01:00
Marc Poulhiès
8528f4b25f
Update PULL_REQUEST_TEMPLATE.md
Reverting previous change.
Github is smart enough to filter out this block, but bors is not and pastes it in its commit message.
2021-06-19 22:59:01 +02:00
Marc Poulhiès
bb0f91cad3
Update PULL_REQUEST_TEMPLATE.md
Make template content invisible.
2021-06-18 19:12:06 +02:00
Thomas Schwinge
688f589b9f Re-organize GCC/Rust testsuites
... as discussed in
<https://gcc-rust.zulipchat.com/#narrow/stream/266897-general/topic/Testsuite.20results>:

> [...] best practice from what other GCC testsuites are doing), which I hope
> makes clearer the difference between the individual GCC/Rust testsuites:
> 'rust.test/compile' -> 'rust/compile/torture'
> 'rust.test/execute' -> 'rust/execute/torture'
> 'rust.test/unsupported' -> 'rust/compile/xfail'
> 'rust.test/xfail_compile' -> 'rust/compile'

... plus corresponding documentation updates in the '*.exp' files and
elsewhere.
2021-06-02 11:05:44 +02:00
Philip Herron
d89249208a Add issue templates ported from rust-clippy 2021-05-14 15:14:27 +01:00
Philip Herron
39ff3ddc23 Add PR template 2021-05-14 13:45:34 +01:00
Philip Herron
a027e84a71 remove greetings yml 2021-05-14 13:37:08 +01:00
Marc Poulhiès
777ef8a74c Initial bors-ng integration
Github Action only triggered on bors-ng controlled branches (trying/staging).
Fixes #324
2021-04-05 19:59:27 +02:00
Philip Herron
112495e257 Add bootstrap build based off our normal build which tests the status of bootstrap builds 2021-04-05 11:10:02 +01:00
Marc Poulhiès
c044fda54b Fix CI checks
Checking for 'unexpected' will also catch XFAIL tests being PASS.
2021-04-01 10:34:35 +01:00
therealansh
b563491f40 CI: build using -j (nproc)
Signed-off-by: therealansh <tyagiansh23@hotmail.com>
2021-03-14 18:35:55 +00:00
Akshat Agarwal
27df0c9f95 Run clang-format CI on every push on master branch
Signed-off-by: Akshat Agarwal <humancalico@disroot.org>
2021-02-22 17:11:21 +00:00
Akshat Agarwal
642cc5ed4f Add clang format GitHub Action
Signed-off-by: Akshat Agarwal <humancalico@disroot.org>
2021-02-19 10:31:39 +00:00
Philip Herron
af04ea2222 Change CI to look for any unexpected failures to fail the build. 2021-01-06 10:52:56 +00:00
Philip Herron
4d590e5d21 Create new Greetings automation on github
This should make sure people are aware about copyright assignment on their first PR.
2021-01-06 10:03:06 +00:00
Philip Herron
04bcc692f5 Seperate build and Test steps in the build 2020-12-23 12:31:48 +00:00
Philip Herron
503eb9b354 Add missing Dejagnu dependancy to run test suite.
Fixes #63
2020-12-16 11:14:59 +00:00
Philip Herron
21d0a20c77 Update Automations to only build rust to improve build times 2020-12-07 10:13:16 +00:00
Philip Herron
e6ebbcc6dd Turn on make check-rust
This will turn on the test-suite which does have a currently failing test
lets see what happens the workflow in github.
2020-11-30 12:41:59 +00:00
Philip Herron
8e2f81b35a Revert "Test a clang-format lint"
This reverts commit 3a3c3ca4314534d03db6f6bb8acef24e091285e1.
2020-11-28 19:09:39 +00:00
Philip Herron
2c40a7f3c0 Test a clang-format lint 2020-11-28 19:09:39 +00:00
Philip Herron
3a2b1a2084 paralellized builds causes problems in workflow 2020-11-27 17:02:35 +00:00
Philip Herron
a4efcf829f Missing plugin-dev to provide insn-modes.h for workflow github env 2020-11-27 17:02:35 +00:00
Philip Herron
7a6059df73 Missing g++-multilib for workflow github env 2020-11-27 17:02:31 +00:00