From 6bd733bf0494d2cc8f2204dda6a0de29a7fd7e45 Mon Sep 17 00:00:00 2001 From: Pauline Date: Sun, 4 Aug 2024 05:50:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20wip:=20fshjdjga?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/setup-system/action.yml | 11 ++++++----- .github/workflows/build.yml | 8 ++++---- .github/workflows/cache.yml | 14 +++++++------- .github/workflows/release.yml | 6 +++--- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/actions/setup-system/action.yml b/.github/actions/setup-system/action.yml index a33d1b46..bfd53e48 100644 --- a/.github/actions/setup-system/action.yml +++ b/.github/actions/setup-system/action.yml @@ -19,19 +19,19 @@ inputs: runs: using: composite steps: - - name: (macOS) - Install bash@latest + - name: (macOS) Install bash@latest shell: bash if: ${{ runner.os == 'macOS' }} run: brew install bash - - name: (linux) - Install mold@latest + - name: (Linux) Install mold@latest shell: bash if: ${{ runner.os == 'Linux' }} run: | curl -L# 'https://github.com/rui314/mold/releases/download/v2.32.1/mold-2.32.1-x86_64-linux.tar.gz' \ | sudo tar -xzf- -C /usr/local - - name: (linux) - Cleanup Runner + - name: (Linux) Cleanup Runner shell: bash if: ${{ runner.os == 'Linux' }} run: | @@ -49,12 +49,13 @@ runs: target: ${{ inputs.target }} save-cache: ${{ inputs.save-cache }} - - name: (linux/macOS) - Setup System + - name: (Linux/macOS) - Setup System shell: bash if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }} run: ./packages/scripts/setup.sh ${{ inputs.setup-arg }} - - name: (windows) - Setup System + - name: (Windows) - Setup System + if: ${{ runner.os == 'Windows' }} shell: powershell run: ./packages/scripts/setup.ps1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a5ec7c52..43ae22f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: permissions: contents: read steps: - - name: Maximize build space + - name: (Linux) Maximize build space if: ${{ runner.os == 'Linux' }} uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c with: @@ -60,7 +60,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - name: (windows) - Setup Target + - name: (Windows) Setup Target if: ${{ runner.os == 'Windows' }} shell: powershell run: | @@ -114,7 +114,7 @@ jobs: permissions: contents: read steps: - - name: Maximize build space + - name: (Linux) Maximize build space if: ${{ runner.os == 'Linux' }} uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c with: @@ -128,7 +128,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - name: (windows) - Setup Target + - name: (Windows) Setup Target if: ${{ runner.os == 'Windows' }} shell: powershell run: | diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index fc7d6ab0..765187ad 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -42,7 +42,7 @@ jobs: permissions: {} timeout-minutes: 150 steps: - - name: Maximize build space + - name: (Linux) Maximize build space if: ${{ runner.os == 'Linux' }} uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c with: @@ -56,7 +56,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - name: (windows) - Setup Target + - name: (Windows) Setup Target if: ${{ runner.os == 'Windows' }} shell: powershell run: | @@ -70,17 +70,17 @@ jobs: target: ${{ matrix.settings.target }} save-cache: 'true' - - name: (debug) - Test + - name: (Debug) Test run: cargo test --workspace --all-features --no-run --locked --target ${{ matrix.settings.target }} - - name: (release) - Test + - name: (Release) Test run: cargo test --workspace --all-features --no-run --locked --release --target ${{ matrix.settings.target }} - - name: (debug) - Build + - name: (Debug) Build run: cargo build --quiet --workspace --all-features --target ${{ matrix.settings.target }} - - name: (release) - Build + - name: (Release) Build run: cargo build --quiet --workspace --all-features --release --target ${{ matrix.settings.target }} - - name: (debug) - Clippy + - name: (Debug) Clippy run: cargo clippy --workspace --all-features --target ${{ matrix.settings.target }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 258a55ac..f5bb28ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: name: Desktop (${{ matrix.settings.target }}) runs-on: ${{ matrix.settings.host }} steps: - - name: Maximize build space + - name: (Linux) Maximize build space if: ${{ runner.os == 'Linux' }} uses: easimon/maximize-build-space@fc881a613ad2a34aca9c9624518214ebc21dfc0c with: @@ -53,7 +53,7 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - name: (windows) - Setup Target + - name: (Windows) Setup Target if: ${{ runner.os == 'Windows' }} shell: powershell run: | @@ -103,7 +103,7 @@ jobs: # APPLE_API_KEY: $ {{ secrets.APPLE_API_KEY }} # SENTRY_AUTH_TOKEN: $ {{ secrets.SENTRY_AUTH_TOKEN }} - - name: (linux) - Build Frontend + - name: (Linux) Build Frontend if: ${{ runner.os == 'Linux' }} run: | set -eux