85 Commits

Author SHA1 Message Date
徐未来
b110613bee cxx 1.0.91升级至1.0.97
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-04-02 19:59:25 +08:00
openharmony_ci
96698d870d
回退 'Pull Request !11 : cxx1.0.91升级至1.0.97' 2024-04-02 03:30:32 +00:00
徐未来
e4f6feee96 1.0.91升级至1.0.97
Signed-off-by: 徐未来 <xuweilai2@huawei.com>
2024-03-08 16:36:47 +08:00
David Tolnay
913b6149c1
Raise minimum tested rustc to 1.64
Required by clap 4.1 / clap_lex 0.3.1:

    error: package `clap_lex v0.3.1` cannot be built because it requires rustc 1.64.0 or newer
2023-01-13 19:05:55 -08:00
David Tolnay
99eef7cc2a
Prevent actions duplication on noop merge commits 2022-12-31 12:45:32 -08:00
David Tolnay
bf521e51b9
Reindeer vendor -> reindeer buckify only
This is significantly faster; <1 second instead of 26 seconds. Vendor
used to check out a whole new crates.io index using third-party/.cargo
as the CARGO_HOME.
2022-12-21 21:13:30 -08:00
David Tolnay
8d7f0465ef
Bazel 6.0.0 2022-12-20 09:56:17 -08:00
David Tolnay
9a3f8d8e0f
Check reindeer-generated BUCK file in CI 2022-12-15 11:17:52 -08:00
David Tolnay
89827822ea
Buck2 now supports stable rustc 2022-12-06 16:23:25 -08:00
David Tolnay
83b7d597cf
Run test suite in the buck2 CI job
`buck2 test` isn't available yet in the open source version of buck2,
but this workaround is sufficient for cxx.
2022-12-03 11:02:33 -08:00
David Tolnay
5f275bc40e
Reduce the set of crates that get vendored
Before:

    adler-1.0.2                  libc-0.2.137            serde_json-1.0.89
    bitflags-1.3.2               link-cplusplus-1.0.7    strsim-0.10.0
    cc-1.0.77                    memmap-0.7.0            syn-1.0.105
    cfg-if-1.0.0                 miniz_oxide-0.6.2       termcolor-1.1.3
    clang-ast-0.1.9              once_cell-1.16.0        toml-0.5.9
    clap-4.0.29                  os_str_bytes-6.4.1      trybuild-1.0.72
    clap_lex-0.3.0               pkg-config-0.3.26       unicode-ident-1.0.5
    codespan-reporting-0.11.1    proc-macro2-1.0.47      unicode-width-0.1.10
    crc32fast-1.3.2              quote-1.0.21            winapi-0.3.9
    dissimilar-1.0.4             rustversion-1.0.9       winapi-i686-pc-windows-gnu-0.4.0
    flate2-1.0.25                ryu-1.0.11              winapi-util-0.1.5
    glob-0.3.0                   scratch-1.0.2           winapi-x86_64-pc-windows-gnu-0.4.0
    itoa-1.0.4                   serde-1.0.148
    jobserver-0.1.25             serde_derive-1.0.148

After:

    bitflags-1.3.2               os_str_bytes-6.4.1      unicode-ident-1.0.5
    cc-1.0.77                    proc-macro2-1.0.47      unicode-width-0.1.10
    clap-4.0.29                  quote-1.0.21            winapi-0.3.9
    clap_lex-0.3.0               scratch-1.0.2           winapi-i686-pc-windows-gnu-0.4.0
    codespan-reporting-0.11.1    syn-1.0.105             winapi-util-0.1.5
    once_cell-1.16.0             termcolor-1.1.3         winapi-x86_64-pc-windows-gnu-0.4.0
2022-12-02 22:57:32 -08:00
David Tolnay
dcbc8773d5
Add buck2 CI 2022-12-01 22:28:47 -08:00
David Tolnay
8e5e1f590e
Delete buck1 build from CI
This job began failing today due to some GitHub Actions change. We'll be
replacing it with a buck2 build shortly anyway so it's not worth
debugging now.

    Traceback (most recent call last):
      File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
        return _run_code(code, main_globals, None,
      File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
        exec(code, run_globals)
      File "/home/runner/work/cxx/cxx/bin/buck/__main__.py", line 25, in <module>
      File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/_pex/pex_bootstrapper.py", line 92, in bootstrap_pex
      File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/_pex/finders.py", line 22, in <module>
      File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/pkg_resources/__init__.py", line 32, in <module>
    ModuleNotFoundError: No module named 'symbol'
2022-11-30 19:16:20 -08:00
David Tolnay
3cc9f6bf94
Timeout for book deploy 2022-11-24 09:18:32 -08:00
David Tolnay
1be11d6288
Time out workflows after 45 minutes
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It appears to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
2022-11-24 09:13:56 -08:00
David Tolnay
5b38fbf0c6
Switch from set-output to $GITHUB_OUTPUT 2022-10-13 09:38:11 -07:00
David Tolnay
00406ecc3a
Raise minimum tested toolchain to rust 1.60 2022-09-28 16:31:59 -07:00
David Tolnay
8931be52a0
Raise minimum tested toolchain to rust 1.56.1
Required by the transitive dev-dependency on once_cell.

    error: failed to parse manifest at github.com-1ecc6299db9ec823/once_cell-1.15.0/Cargo.toml

    Caused by:
      feature `edition2021` is required

      The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
      Consider trying a newer version of Cargo (this may require the nightly release).
      See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information about the status of this feature.
2022-09-20 22:38:04 -07:00
David Tolnay
851716f7e9
GitHub Workflows security hardening 2022-09-02 15:09:28 -07:00
David Tolnay
cd233d20d1
Revert "Avoid cargo 1.45–1.50 in GitHub Actions"
This reverts commit ac9b4c4cb390c9d540f608e2739e8d71013069ff.
2022-08-20 21:08:12 -07:00
David Tolnay
ac9b4c4cb3
Avoid cargo 1.45–1.50 in GitHub Actions
These versions are incompatible with packages published by a recent Cargo
2022-08-08 23:11:17 -07:00
David Tolnay
5399116128
Raise minimum tested toolchain to rust 1.57
Required by the transitive dependency on os_str_bytes:

    error: package `os_str_bytes v6.2.0` cannot be built because it
    requires rustc 1.57.0 or newer, while the currently active rustc
    version is 1.56.1
2022-07-16 20:08:36 -07:00
David Tolnay
98c5161a7d
Disable pc-windows-gnu CI for now
Currently failing in GitHub Actions with:

    Compiling demo v0.0.0 (D:\a\cxx\cxx\demo)
     Finished dev [unoptimized + debuginfo] target(s) in 1m 57s
      Running `target\debug\demo.exe`
    error: process didn't exit successfully: `target\debug\demo.exe` (exit code: 0xc0000139, STATUS_ENTRYPOINT_NOT_FOUND)
    Error: Process completed with exit code 1.
2022-06-24 00:25:52 -07:00
David Tolnay
5ceda9a122
Update oldest allowed compiler for cxxbridge-cmd to 1.56.1 2022-06-17 22:31:31 -07:00
David Tolnay
13998f0482
Check all crates in workspace for outdated deps 2022-06-06 14:39:20 -07:00
David Tolnay
3e7e454d83
Drop unneeded permissions from workflow 2022-05-23 04:50:16 -07:00
David Tolnay
205964659b
Update workflows to actions/checkout@v3 2022-04-24 18:28:00 -07:00
David Tolnay
d8f9c9d924
Update CI job to bazel 5.1.1 2022-04-10 20:18:36 -07:00
David Tolnay
0b74c5ff5c
Update to clap 3 2022-01-02 13:15:22 -08:00
David Tolnay
833ea22272
Move exclude cxx-test-suite to test suite subset step 2022-01-02 13:08:00 -08:00
David Tolnay
174e91c10f
Factor out repeated rustflags from CI config 2022-01-01 00:40:20 -08:00
David Tolnay
949b323cc0
Detect Rust warnings in CI 2021-12-31 22:14:47 -08:00
David Tolnay
dae5278b81
Update CI job to bazel 4.2.2 2021-12-07 16:46:11 -08:00
David Tolnay
b0b6fd8788
Add CI builds on no_std and no_alloc 2021-12-07 15:44:13 -08:00
David Tolnay
178b0b6b49
Install newest build of cargo-outdated
The old version available by default in the GitHub Actions image fails
with:

    thread 'main' panicked at 'package cache lock is not currently held, Cargo forgot to call `acquire_package_cache_lock` before we got to this stack frame', /usr/share/rust/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.57.0/src/cargo/util/config/mod.rs:1542:9
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2021-11-17 13:32:33 -08:00
David Tolnay
981d720cf7
Add actions job to notice outdated dependencies 2021-10-08 01:48:29 -04:00
David Tolnay
1bcdd75a8c
Link using lld in Bazel builds 2021-10-05 18:02:29 -04:00
David Tolnay
c65fa3bb53
Re-enable clippy after upstream crash fix 2021-09-12 05:15:24 -07:00
David Tolnay
b625b3fcdf
Disable clippy CI due to clippy crash
Clippy crash: https://github.com/rust-lang/rust-clippy/issues/7423

    thread 'rustc' panicked at '`LateContext::typeck_results` called outside of body', src/tools/clippy/clippy_lints/src/use_self.rs:213:20
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

    error: internal compiler error: unexpected panic

    note: the compiler unexpectedly panicked. this is a bug.

    query stack during panic:
    #0 [analysis] running analysis passes on this crate
    end of query stack
2021-07-02 22:08:30 -07:00
David Tolnay
42c1ee806f
Disable bazel/buck CI jobs on pull requests
These are somewhat annoying to set up for local development, and
iterating a PR via GitHub Actions remote builds is painful. Anything
that would break these is always easy enough to fix up afterward.
2021-04-16 15:58:41 -07:00
David Tolnay
35c6c4b25c
Update to clang-tidy 11 2021-03-24 15:48:06 -04:00
David Tolnay
6aeaca628d
Disable lint jobs on pull requests 2021-03-22 19:43:08 -07:00
Andre Brisco
57982c4d4c Updated version of Bazel used in CI to 4.0.0 (Bazel's first LTS release) 2021-01-27 09:27:20 -08:00
David Tolnay
aa619660c7
Trigger site rebuild on workflow changes 2021-01-05 00:15:43 -08:00
David Tolnay
abd52bc75b
Emit mdBook version into build log
Allows confirming that we've picked up the fix for https://blog.rust-lang.org/2021/01/04/mdbook-security-advisory.html
2021-01-05 00:13:31 -08:00
David Tolnay
0e84959b2a
Enable deny_warnings in CI 2021-01-02 21:30:43 -08:00
David Tolnay
671d2b90ea
Enable standard exception handling for MSVC in CI 2021-01-02 18:55:34 -08:00
David Tolnay
74c8ae4280
Merge pull request #501 from dtolnay/tidy
Run clang-tidy in CI
2020-11-23 17:57:12 -08:00
David Tolnay
b5b260c2a7
Make clang-tidy fail CI on positive finding 2020-11-23 17:40:45 -08:00
David Tolnay
99b1a5cef5
Fix yaml indentation in clang-tidy workflow job 2020-11-23 17:40:43 -08:00