Skip to content

Commit 176d95a

Browse files
committed
apt update
1 parent b0f1f96 commit 176d95a

1 file changed

Lines changed: 41 additions & 41 deletions

File tree

.github/workflows/ci.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ "main", "develop" ]
5+
branches: ["main", "develop"]
66
pull_request:
7-
branches: [ "main", "develop" ]
7+
branches: ["main", "develop"]
88
workflow_dispatch:
99

1010
env:
@@ -15,15 +15,15 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v4
1919

20-
- uses: taiki-e/install-action@v2
21-
with:
22-
tool: cargo-binstall
20+
- uses: taiki-e/install-action@v2
21+
with:
22+
tool: cargo-binstall
2323

24-
- run: cargo binstall -y rust-script@0.34.0
24+
- run: cargo binstall -y rust-script@0.34.0
2525

26-
- run: rust-script _scripts/check-templates.rs
26+
- run: rust-script _scripts/check-templates.rs
2727

2828
fmt-clippy:
2929
strategy:
@@ -34,36 +34,36 @@ jobs:
3434
runs-on: ubuntu-latest
3535

3636
steps:
37-
- uses: actions/checkout@v4
38-
39-
- name: Clone the Shuttle main repository
40-
if: ${{ github.ref == 'refs/heads/develop' || github.base_ref == 'develop' }}
41-
run: |
42-
git clone --depth 1 --branch main https://github.com/shuttle-hq/shuttle.git /home/runner/shuttle
43-
cd /home/runner/shuttle
44-
git log -1 --format='%H'
45-
46-
- name: Apply patches
47-
if: ${{ github.ref == 'refs/heads/develop' || github.base_ref == 'develop' }}
48-
run: /home/runner/shuttle/scripts/apply-patches.sh .cargo/config.toml /home/runner/shuttle
49-
50-
- name: Install sccache
51-
run: |
52-
SCCACHE_VERSION='v0.7.7'
53-
curl -L https://github.com/mozilla/sccache/releases/download/$SCCACHE_VERSION/sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl.tar.gz \
54-
| tar -xOz sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl/sccache \
55-
> /home/runner/.cargo/bin/sccache \
56-
&& chmod +x /home/runner/.cargo/bin/sccache
57-
58-
# bevy dependency
59-
- run: sudo apt install -y libasound2-dev libudev-dev
60-
61-
- name: Check formatting and Clippy
62-
shell: bash
63-
run: _scripts/ci.sh ${{ matrix.from-to }}
64-
env:
65-
RUSTC_WRAPPER: /home/runner/.cargo/bin/sccache
66-
CARGO_TARGET_DIR: /tmp/target
67-
68-
- name: Show sccache stats
69-
run: /home/runner/.cargo/bin/sccache --show-stats
37+
- uses: actions/checkout@v4
38+
39+
- name: Clone the Shuttle main repository
40+
if: ${{ github.ref == 'refs/heads/develop' || github.base_ref == 'develop' }}
41+
run: |
42+
git clone --depth 1 --branch main https://github.com/shuttle-hq/shuttle.git /home/runner/shuttle
43+
cd /home/runner/shuttle
44+
git log -1 --format='%H'
45+
46+
- name: Apply patches
47+
if: ${{ github.ref == 'refs/heads/develop' || github.base_ref == 'develop' }}
48+
run: /home/runner/shuttle/scripts/apply-patches.sh .cargo/config.toml /home/runner/shuttle
49+
50+
- name: Install sccache
51+
run: |
52+
SCCACHE_VERSION='v0.7.7'
53+
curl -L https://github.com/mozilla/sccache/releases/download/$SCCACHE_VERSION/sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl.tar.gz \
54+
| tar -xOz sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl/sccache \
55+
> /home/runner/.cargo/bin/sccache \
56+
&& chmod +x /home/runner/.cargo/bin/sccache
57+
58+
# bevy dependency
59+
- run: sudo apt update && sudo apt install -y libasound2-dev libudev-dev
60+
61+
- name: Check formatting and Clippy
62+
shell: bash
63+
run: _scripts/ci.sh ${{ matrix.from-to }}
64+
env:
65+
RUSTC_WRAPPER: /home/runner/.cargo/bin/sccache
66+
CARGO_TARGET_DIR: /tmp/target
67+
68+
- name: Show sccache stats
69+
run: /home/runner/.cargo/bin/sccache --show-stats

0 commit comments

Comments
 (0)