mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Deal with another batch of GHA warning messages (#14313)
This commit is contained in:
parent
efdcb24328
commit
a62c796f63
50
.github/workflows/tests.yml
vendored
50
.github/workflows/tests.yml
vendored
@ -33,6 +33,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
- uses: matrix-org/setup-python-poetry@v1
|
- uses: matrix-org/setup-python-poetry@v1
|
||||||
with:
|
with:
|
||||||
extras: "all"
|
extras: "all"
|
||||||
@ -44,6 +46,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
- run: "pip install 'click==8.1.1' 'GitPython>=3.1.20'"
|
- run: "pip install 'click==8.1.1' 'GitPython>=3.1.20'"
|
||||||
- run: scripts-dev/check_schema_delta.py --force-colors
|
- run: scripts-dev/check_schema_delta.py --force-colors
|
||||||
|
|
||||||
@ -68,6 +72,8 @@ jobs:
|
|||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
- run: "pip install 'towncrier>=18.6.0rc1'"
|
- run: "pip install 'towncrier>=18.6.0rc1'"
|
||||||
- run: scripts-dev/check-newsfragment.sh
|
- run: scripts-dev/check-newsfragment.sh
|
||||||
env:
|
env:
|
||||||
@ -93,10 +99,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# There don't seem to be versioned releases of this action per se: for each rust
|
||||||
|
# version there is a branch which gets constantly rebased on top of master.
|
||||||
|
# We pin to a specific commit for paranoia's sake.
|
||||||
|
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
|
||||||
with:
|
with:
|
||||||
toolchain: 1.58.1
|
toolchain: 1.58.1
|
||||||
override: true
|
|
||||||
components: clippy
|
components: clippy
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
@ -111,10 +119,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# There don't seem to be versioned releases of this action per se: for each rust
|
||||||
|
# version there is a branch which gets constantly rebased on top of master.
|
||||||
|
# We pin to a specific commit for paranoia's sake.
|
||||||
|
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
|
||||||
with:
|
with:
|
||||||
toolchain: 1.58.1
|
toolchain: 1.58.1
|
||||||
override: true
|
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
@ -143,6 +153,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
- id: get-matrix
|
- id: get-matrix
|
||||||
run: .ci/scripts/calculate_jobs.py
|
run: .ci/scripts/calculate_jobs.py
|
||||||
outputs:
|
outputs:
|
||||||
@ -169,10 +181,12 @@ jobs:
|
|||||||
postgres:${{ matrix.job.postgres-version }}
|
postgres:${{ matrix.job.postgres-version }}
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# There don't seem to be versioned releases of this action per se: for each rust
|
||||||
|
# version there is a branch which gets constantly rebased on top of master.
|
||||||
|
# We pin to a specific commit for paranoia's sake.
|
||||||
|
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
|
||||||
with:
|
with:
|
||||||
toolchain: 1.58.1
|
toolchain: 1.58.1
|
||||||
override: true
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- uses: matrix-org/setup-python-poetry@v1
|
- uses: matrix-org/setup-python-poetry@v1
|
||||||
@ -211,10 +225,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# There don't seem to be versioned releases of this action per se: for each rust
|
||||||
|
# version there is a branch which gets constantly rebased on top of master.
|
||||||
|
# We pin to a specific commit for paranoia's sake.
|
||||||
|
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
|
||||||
with:
|
with:
|
||||||
toolchain: 1.58.1
|
toolchain: 1.58.1
|
||||||
override: true
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
# There aren't wheels for some of the older deps, so we need to install
|
# There aren't wheels for some of the older deps, so we need to install
|
||||||
@ -327,10 +343,12 @@ jobs:
|
|||||||
run: cat sytest-blacklist .ci/worker-blacklist > synapse-blacklist-with-workers
|
run: cat sytest-blacklist .ci/worker-blacklist > synapse-blacklist-with-workers
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# There don't seem to be versioned releases of this action per se: for each rust
|
||||||
|
# version there is a branch which gets constantly rebased on top of master.
|
||||||
|
# We pin to a specific commit for paranoia's sake.
|
||||||
|
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
|
||||||
with:
|
with:
|
||||||
toolchain: 1.58.1
|
toolchain: 1.58.1
|
||||||
override: true
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Run SyTest
|
- name: Run SyTest
|
||||||
@ -459,10 +477,12 @@ jobs:
|
|||||||
path: synapse
|
path: synapse
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# There don't seem to be versioned releases of this action per se: for each rust
|
||||||
|
# version there is a branch which gets constantly rebased on top of master.
|
||||||
|
# We pin to a specific commit for paranoia's sake.
|
||||||
|
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
|
||||||
with:
|
with:
|
||||||
toolchain: 1.58.1
|
toolchain: 1.58.1
|
||||||
override: true
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Prepare Complement's Prerequisites
|
- name: Prepare Complement's Prerequisites
|
||||||
@ -485,10 +505,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
# There don't seem to be versioned releases of this action per se: for each rust
|
||||||
|
# version there is a branch which gets constantly rebased on top of master.
|
||||||
|
# We pin to a specific commit for paranoia's sake.
|
||||||
|
uses: dtolnay/rust-toolchain@55c7845fad90d0ae8b2e83715cb900e5e861e8cb
|
||||||
with:
|
with:
|
||||||
toolchain: 1.58.1
|
toolchain: 1.58.1
|
||||||
override: true
|
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- run: cargo test
|
- run: cargo test
|
||||||
|
1
changelog.d/14313.misc
Normal file
1
changelog.d/14313.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Switch to a maintained action for installing Rust in CI.
|
Loading…
Reference in New Issue
Block a user