forked from xibyte/jsketcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update ci to use docker container
- Loading branch information
1 parent
0750c00
commit 98de939
Showing
1 changed file
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,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: | ||
|
@@ -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/[email protected] | ||
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: | ||
|