Skip to content

Commit 33de6c1

Browse files
author
ODAncona
committed
Merge branch 'tui' into main
2 parents 989d6f6 + 39a63cd commit 33de6c1

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020
- name: Run tests
2121
run: cargo test --verbose

.github/workflows/release.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ jobs:
1818
target: x86_64-apple-darwin
1919
- os: macos-latest
2020
target: aarch64-apple-darwin
21+
- os: windows-latest
22+
target: x86_64-pc-windows-msvc
2123
runs-on: ${{ matrix.os }}
2224
outputs:
2325
asset-path: ${{ steps.set_asset.outputs.asset-path }}
2426
steps:
2527
- name: Checkout code
26-
uses: actions/checkout@v4
28+
uses: actions/checkout@v5
2729

2830
- name: Set up Rust toolchain
2931
uses: actions-rs/toolchain@v1
@@ -32,13 +34,39 @@ jobs:
3234
target: ${{ matrix.target }}
3335
override: true
3436

37+
- name: Cache Rust dependencies
38+
uses: actions/cache@v4
39+
with:
40+
path: |
41+
~/.cargo/bin/
42+
~/.cargo/registry/index/
43+
~/.cargo/registry/cache/
44+
~/.cargo/git/db/
45+
target/
46+
key: ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
47+
restore-keys: |
48+
${{ runner.os }}-${{ matrix.target }}-cargo-
49+
3550
- name: Install extra dependencies on Ubuntu
3651
if: runner.os == 'Linux'
3752
run: |
3853
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
3954
sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu
4055
fi
4156
57+
- name: Cache LLVM on Windows
58+
if: runner.os == 'Windows'
59+
id: cache-llvm
60+
uses: actions/cache@v4
61+
with:
62+
path: C:\Program Files\LLVM
63+
key: windows-llvm-latest
64+
65+
- name: Install LLVM on Windows
66+
if: runner.os == 'Windows' && steps.cache-llvm.outputs.cache-hit != 'true'
67+
run: |
68+
choco install llvm
69+
4270
- name: Build
4371
run: cargo build --release --target ${{ matrix.target }}
4472

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout your repository using git
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2323
- name: Install, build, and upload your site
2424
uses: withastro/action@v4
2525
with:

0 commit comments

Comments
 (0)