Skip to content

Commit 5f11d5e

Browse files
authored
drop weird ci actions/steps (#251)
1 parent 6313d5a commit 5f11d5e

File tree

4 files changed

+7
-99
lines changed

4 files changed

+7
-99
lines changed

.github/workflows/cargo-build.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,7 @@ jobs:
2323
name: cargo build
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@master
27-
- name: Cleanup unused space
28-
shell: bash
29-
run: |
30-
set -x
31-
df -h /
32-
sudo rm -rf /usr/local/lib/android
33-
sudo rm -rf /opt/microsoft
34-
sudo rm -rf /usr/share/dotnet
35-
sudo rm -rf /opt/ghc
36-
sudo rm -rf /usr/local/.ghcup
37-
sudo rm -rf /usr/lib/jvm
38-
sudo rm -rf /usr/local/graalvm
39-
sudo rm -rf /usr/local/share/powershell
40-
sudo rm -rf /usr/share/swift
41-
df -h /
42-
- name: Set Swap Space
43-
uses: pierotofy/set-swap-space@master
44-
with:
45-
swap-size-gb: 10
46-
- name: Install latest rust
47-
uses: actions-rs/toolchain@v1
48-
with:
49-
toolchain: stable
50-
override: true
51-
components: rustfmt, clippy
26+
- uses: actions/checkout@v5
5227
- name: Cache cargo registry
5328
uses: actions/cache@v4
5429
with:

.github/workflows/cargo-clippy.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,7 @@ jobs:
2323
name: cargo clippy
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@master
27-
- name: Cleanup unused space
28-
shell: bash
29-
run: |
30-
set -x
31-
df -h /
32-
sudo rm -rf /usr/local/lib/android
33-
sudo rm -rf /opt/microsoft
34-
sudo rm -rf /usr/share/dotnet
35-
sudo rm -rf /opt/ghc
36-
sudo rm -rf /usr/local/.ghcup
37-
sudo rm -rf /usr/lib/jvm
38-
sudo rm -rf /usr/local/graalvm
39-
sudo rm -rf /usr/local/share/powershell
40-
sudo rm -rf /usr/share/swift
41-
df -h /
42-
- name: Set Swap Space
43-
uses: pierotofy/set-swap-space@master
44-
with:
45-
swap-size-gb: 10
46-
- name: Install latest rust
47-
uses: actions-rs/toolchain@v1
48-
with:
49-
toolchain: stable
50-
override: true
51-
components: rustfmt, clippy
26+
- uses: actions/checkout@v5
5227
- name: Cache cargo registry
5328
uses: actions/cache@v4
5429
with:
@@ -64,18 +39,5 @@ jobs:
6439
with:
6540
path: target
6641
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
67-
- name: Check workflow permissions
68-
id: check_permissions
69-
uses: scherermichael-oss/[email protected]
70-
with:
71-
required-permission: write
72-
env:
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
- if: steps.check_permissions.outputs.has-permission
75-
uses: actions-rs/clippy-check@v1
76-
with:
77-
token: ${{ secrets.GITHUB_TOKEN }}
78-
args: --all --exclude engine
7942
- name: Run clippy manually without annotations
80-
if: ${{ !steps.check_permissions.outputs.has-permission }}
8143
run: cargo clippy --all

.github/workflows/cargo-test.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,13 @@ on:
2020
- 'rust-toolchain'
2121
- 'rust-toolchain.toml'
2222
workflow_dispatch:
23-
permissions: read-all
2423
name: cargo test
2524
jobs:
2625
cargotest:
2726
name: cargo test
2827
runs-on: ubuntu-latest
2928
steps:
30-
- uses: actions/checkout@master
31-
- name: Cleanup unused space
32-
shell: bash
33-
run: |
34-
set -x
35-
df -h /
36-
sudo rm -rf /usr/local/lib/android
37-
sudo rm -rf /opt/microsoft
38-
sudo rm -rf /usr/share/dotnet
39-
sudo rm -rf /opt/ghc
40-
sudo rm -rf /usr/local/.ghcup
41-
sudo rm -rf /usr/lib/jvm
42-
sudo rm -rf /usr/local/graalvm
43-
sudo rm -rf /usr/local/share/powershell
44-
sudo rm -rf /usr/share/swift
45-
df -h /
46-
- name: Set Swap Space
47-
uses: pierotofy/set-swap-space@master
48-
with:
49-
swap-size-gb: 10
50-
- name: Install latest rust
51-
uses: actions-rs/toolchain@v1
52-
with:
53-
toolchain: stable
54-
override: true
55-
components: rustfmt, clippy
29+
- uses: actions/checkout@v5
5630
- name: Cache cargo registry
5731
uses: actions/cache@v4
5832
with:
@@ -79,13 +53,7 @@ jobs:
7953
REMOTE_API_TOKEN: ${{secrets.REMOTE_API_TOKEN_DEV_CI}}
8054

8155
# TODO: turn back on coverage.
82-
#- name: Run cargo-tarpaulin
83-
#uses: actions-rs/[email protected]
84-
#with:
85-
#version: '0.15.0'
86-
#args: '--exclude-files schema.rs --timeout 2000 --all'
87-
#env:
88-
#RUST_BACKTRACE: 1
56+
# Somehow gather coverage
8957

9058
#- name: Upload to codecov.io
9159
#uses: codecov/codecov-action@v3

rust-toolchain.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
channel = "1.91.1"
3+
components = [ "rustfmt", "clippy" ]

0 commit comments

Comments
 (0)