diff --git a/.github/workflows/rust-versions.yaml b/.github/workflows/rust-versions.yaml index 12b8c0118..3208d85d0 100644 --- a/.github/workflows/rust-versions.yaml +++ b/.github/workflows/rust-versions.yaml @@ -1,70 +1,16 @@ +# testing future versions of rust name: rust-versions on: push: - tags: # only on releases, not RC, since we've tested already - - "[0-9]+.[0-9]+.[0-9]+" - branches: ["**"] # glob pattern to allow slash / - pull_request: - types: - - opened - - synchronize - branches: - - "release**" - - "main**" + branches: ["ci-bins*"] # glob pattern to allow slash / schedule: - cron: "30 00 * * *" -# TODO: use ci run matrix options - jobs: - builds-stable: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: setup env - uses: ./.github/actions/build_env - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: install rustfmt clippy - shell: bash - run: rustup component add rustfmt clippy - - - name: clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --workspace --tests -- -D warnings - - builds-beta: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: setup env - uses: ./.github/actions/build_env - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: beta - override: true - - - name: install rustfmt clippy - shell: bash - run: rustup component add rustfmt clippy - - - name: clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --workspace --tests -- -D warnings - - builds-nightly: + builds: + strategy: + matrix: + channel: ["stable", "beta", "nightly"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -75,15 +21,8 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly + toolchain: ${{matrix.channel}} override: true - - name: install rustfmt clippy - shell: bash - run: rustup component add rustfmt clippy - - - name: clippy - uses: actions-rs/cargo@v1 - with: - command: clippy - args: --workspace --tests -- -D warnings + - name: debug build + run: cargo b -p libra