From 94de78c5130496dde63099635401a6699d374e58 Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 12 Jun 2026 16:39:12 +0800 Subject: [PATCH] ci: run directly on runner without docker container --- .gitea/workflows/ci.yaml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 932d0a5..83dc779 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -9,16 +9,19 @@ on: jobs: check: runs-on: ubuntu-latest - container: - image: rust:bookworm steps: - name: Checkout uses: actions/checkout@v4 - - name: Install system dependencies + - name: Install Rust toolchain run: | - apt-get update - apt-get install -y nodejs npm + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' - name: Install Rust target run: rustup target add wasm32-unknown-unknown @@ -27,8 +30,7 @@ jobs: run: cargo install dioxus-cli --locked - name: Install Tailwind CSS CLI - run: | - npm install -g tailwindcss + run: npm install -g tailwindcss - name: Check formatting run: cargo fmt -- --check @@ -44,17 +46,20 @@ jobs: build: runs-on: ubuntu-latest - container: - image: rust:bookworm needs: check steps: - name: Checkout uses: actions/checkout@v4 - - name: Install system dependencies + - name: Install Rust toolchain run: | - apt-get update - apt-get install -y nodejs npm + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' - name: Install Rust target run: rustup target add wasm32-unknown-unknown