Skip to content

Commit

Permalink
feat: update ci to use docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanzyTHEbar committed May 11, 2023
1 parent 0750c00 commit 98de939
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -64,29 +64,28 @@ 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:
node-version: ${{ matrix.node-version }}
#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:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 98de939

Please sign in to comment.