From 6dba79b0d6319ade2ae0303ea26f04f3522b6b7a Mon Sep 17 00:00:00 2001 From: 13m0n4de <136407746+13m0n4de@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:03:26 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20ci(release):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Win=20=E5=92=8C=20MacOS=20=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=9A=84=20tailwindcss=20=E4=B8=8B=E8=BD=BD=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05fd15d..2523ac8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,15 +14,16 @@ jobs: fail-fast: false matrix: job: - - { os: ubuntu-latest , target: x86_64-unknown-linux-gnu , use-cross: false , extension: "" } - - { os: ubuntu-latest , target: x86_64-unknown-linux-musl , use-cross: true , extension: "" } - - { os: ubuntu-latest , target: armv7-unknown-linux-gnueabihf , use-cross: true , extension: "" } - - { os: ubuntu-latest , target: armv7-unknown-linux-musleabihf , use-cross: true , extension: "" } - - { os: ubuntu-latest , target: aarch64-unknown-linux-gnu , use-cross: true , extension: "" } - - { os: ubuntu-latest , target: aarch64-unknown-linux-musl , use-cross: true , extension: "" } - - { os: macos-latest , target: x86_64-apple-darwin , use-cross: false , extension: "" } - - { os: macos-latest , target: aarch64-apple-darwin , use-cross: false , extension: "" } - - { os: windows-latest , target: x86_64-pc-windows-msvc , use-cross: false , extension: .exe } + - { os: ubuntu-latest , target: x86_64-unknown-linux-gnu , use-cross: false , extension: "" , tailwind-platform: linux-x64 } + - { os: ubuntu-latest , target: x86_64-unknown-linux-musl , use-cross: true , extension: "" , tailwind-platform: linux-x64 } + - { os: ubuntu-latest , target: armv7-unknown-linux-gnueabihf , use-cross: true , extension: "" , tailwind-platform: linux-x64 } + - { os: ubuntu-latest , target: armv7-unknown-linux-musleabihf , use-cross: true , extension: "" , tailwind-platform: linux-x64 } + - { os: ubuntu-latest , target: aarch64-unknown-linux-gnu , use-cross: true , extension: "" , tailwind-platform: linux-x64 } + - { os: ubuntu-latest , target: aarch64-unknown-linux-musl , use-cross: true , extension: "" , tailwind-platform: linux-x64 } + - { os: macos-latest , target: x86_64-apple-darwin , use-cross: false , extension: "" , tailwind-platform: macos-x64 } + - { os: macos-latest , target: aarch64-apple-darwin , use-cross: false , extension: "" , tailwind-platform: macos-arm64 } + - { os: windows-latest , target: x86_64-pc-windows-msvc , use-cross: false , extension: .exe , tailwind-platform: windows-x64 } + steps: - name: Checkout uses: actions/checkout@master @@ -40,10 +41,20 @@ jobs: run: cargo binstall -y trunk - name: Install TailwindCSS + shell: bash run: | - wget -q https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 -O tailwindcss - chmod +x tailwindcss - mv tailwindcss /usr/local/bin/ + if [ "${{ matrix.job.os }}" = "windows-latest" ]; then + curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-${{ matrix.job.tailwind-platform }}.exe + mv tailwindcss-${{ matrix.job.tailwind-platform }}.exe tailwindcss.exe + chmod +x tailwindcss.exe + else + curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-${{ matrix.job.tailwind-platform }} + mv tailwindcss-${{ matrix.job.tailwind-platform }} tailwindcss + chmod +x tailwindcss + fi + mkdir -p ~/.local/bin + mv tailwindcss* ~/.local/bin/ + echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Build frontend run: |