From 98de93981f3cb6bda3763a4eb4ce85b201145c78 Mon Sep 17 00:00:00 2001 From: ZanzyTHEbar Date: Thu, 11 May 2023 12:04:40 +0100 Subject: [PATCH] feat: update ci to use docker container --- .github/workflows/ci.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d90a089f..437aae9f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -50,7 +50,7 @@ jobs: uses: actions/checkout@v3 with: token: ${{ env.GITHUB_TOKEN }} - - name: Run Docker container + - name: Build the App (Linux) if: matrix.platform == 'ubuntu-latest' uses: addnab/docker-run-action@v3 with: @@ -64,21 +64,20 @@ jobs: echo "::group::tauri build" pnpm tauri build echo "::endgroup::" - - name: Archive Software Binaries + - name: Archive the App (Linux) if: matrix.platform == 'ubuntu-latest' uses: actions/upload-artifact@v3 with: name: production-files - path: | - src-tauri/target/release/bundle/appimage/*.AppImage + path: src-tauri/target/release/bundle/**/*.{AppImage,deb} retention-days: 5 if-no-files-found: error - - name: Verify build + - name: Verify build (Linux) run: | ls -la src-tauri/target/release/bundle/appimage ls -la src-tauri/target/release/bundle/deb - - name: Node.js setup ${{ matrix.node-version }} + - name: Node.js setup ${{ matrix.node-version }} (Windows & MacOS) if: matrix.platform == 'windows-latest' || matrix.platform == 'macos-latest' uses: actions/setup-node@v3 with: @@ -86,7 +85,7 @@ jobs: #cache: "pnpm" # node-version-file: '.nvmrc' - - name: "Setup Rust" + - name: Setup Rust (Windows & MacOS) if: matrix.platform == 'windows-latest' || matrix.platform == 'macos-latest' uses: actions-rs/toolchain@v1 with: @@ -96,13 +95,13 @@ jobs: toolchain: stable target: ${{ matrix.platform.rust_target }} - - name: "Cache Rust" + - name: Cache Rust (Windows & MacOS) if: matrix.platform == 'windows-latest' || matrix.platform == 'macos-latest' uses: Swatinem/rust-cache@v2 with: workspaces: "./src-tauri -> target" - - name: Build the app + - name: Build the app (Windows & MacOS) if: matrix.platform == 'windows-latest' || matrix.platform == 'macos-latest' uses: JonasKruckenberg/tauri-build@v1.2.3 id: tauri_build @@ -117,7 +116,7 @@ jobs: with: target: ${{ matrix.platform.rust_target }} - - name: Archive Tauri Artifacts + - name: Archive the App (Windows & MacOS) if: matrix.platform == 'windows-latest' || matrix.platform == 'macos-latest' uses: actions/upload-artifact@v3 with: