mirror of
https://gitee.com/openharmony/third_party_rust_regex
synced 2025-04-14 00:20:48 +00:00
ci: various CI updates
Mostly updating various "actions" and doing a little tidying.
This commit is contained in:
parent
95af74d8d9
commit
c31428ad59
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@ -30,47 +30,45 @@ jobs:
|
||||
- win-gnu
|
||||
include:
|
||||
- build: pinned
|
||||
os: ubuntu-18.04
|
||||
os: ubuntu-latest
|
||||
rust: 1.41.1
|
||||
- build: stable
|
||||
os: ubuntu-18.04
|
||||
os: ubuntu-latest
|
||||
rust: stable
|
||||
- build: stable-32
|
||||
os: ubuntu-18.04
|
||||
os: ubuntu-latest
|
||||
rust: stable
|
||||
target: i686-unknown-linux-gnu
|
||||
- build: stable-mips
|
||||
os: ubuntu-18.04
|
||||
os: ubuntu-latest
|
||||
rust: stable
|
||||
target: mips64-unknown-linux-gnuabi64
|
||||
- build: beta
|
||||
os: ubuntu-18.04
|
||||
os: ubuntu-latest
|
||||
rust: beta
|
||||
- build: nightly
|
||||
os: ubuntu-18.04
|
||||
os: ubuntu-latest
|
||||
rust: nightly
|
||||
- build: macos
|
||||
os: macos-latest
|
||||
rust: stable
|
||||
- build: win-msvc
|
||||
os: windows-2019
|
||||
os: windows-latest
|
||||
rust: stable
|
||||
- build: win-gnu
|
||||
os: windows-2019
|
||||
os: windows-latest
|
||||
rust: stable-x86_64-gnu
|
||||
steps:
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
override: true
|
||||
toolchain: ${{ matrix.rust }}
|
||||
profile: minimal
|
||||
override: true
|
||||
|
||||
- name: Install and configure Cross
|
||||
if: matrix.target != ''
|
||||
@ -89,7 +87,7 @@ jobs:
|
||||
echo "target flag is: ${{ env.TARGET }}"
|
||||
|
||||
- name: Show CPU info for debugging
|
||||
if: matrix.os == 'ubuntu-18.04'
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: lscpu
|
||||
|
||||
- name: Basic build
|
||||
@ -163,18 +161,14 @@ jobs:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
override: true
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
components: rustfmt
|
||||
- name: Install rustfmt
|
||||
run: rustup component add rustfmt
|
||||
- name: Check formatting
|
||||
run: |
|
||||
cargo fmt --all -- --check
|
||||
|
Loading…
x
Reference in New Issue
Block a user