-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
37,753 additions
and
143 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
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
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
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 |
---|---|---|
|
@@ -6,20 +6,20 @@ on: | |
tags: | ||
- '*' | ||
branches: | ||
- '*' | ||
- '*' | ||
pull_request: | ||
types: | ||
- opened | ||
branches: | ||
- 'release**' | ||
- 'main' | ||
|
||
jobs: | ||
build: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ windows-latest, macos-latest ] | ||
os: [windows-latest, macos-latest] | ||
name: build ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -34,10 +34,10 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set rust_version from rust_toolchain file | ||
run: echo "RUST_VERSION=$(cat src-tauri/rust-toolchain)" >> $GITHUB_ENV | ||
|
||
- name: Set rust_version from rust_toolchain file | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
|
@@ -47,9 +47,9 @@ jobs: | |
- uses: actions-rs/[email protected] | ||
with: | ||
profile: minimal | ||
toolchain: "${{ env.RUST_VERSION }}" | ||
toolchain: '${{ env.RUST_VERSION }}' | ||
override: true | ||
|
||
# Setup Node.js | ||
- name: setup node | ||
uses: actions/[email protected] | ||
|
@@ -60,7 +60,7 @@ jobs: | |
if: matrix.os == 'windows-latest' | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: "11.0" | ||
version: '11.0' | ||
directory: ${{ runner.temp }}/llvm | ||
|
||
- name: Set LIBCLANG_PATH | ||
|
@@ -74,18 +74,16 @@ jobs: | |
$var = (get-item $(rustup which rustc)).Directory.Parent.FullName+ '\lib\rustlib\' + (rustc -vV | findstr "host:*").split(':')[1].Trim() + '\lib' | ||
Copy-Item ('${{ github.workspace }}' + '\redist' + '\x86_64\*') -Destination $var -Recurse | ||
######## CACHE ######## | ||
######## CACHE ######## | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: ./src-tauri | ||
shared-key: "${{ matrix.os }}" | ||
cache-all-crates: true | ||
cache-on-failure: true | ||
|
||
workspaces: ./src-tauri | ||
shared-key: '${{ matrix.os }}' | ||
cache-all-crates: true | ||
cache-on-failure: true | ||
|
||
######## BUILD ######## | ||
######## BUILD ######## | ||
|
||
- name: yarn installation | ||
run: yarn install | ||
|
@@ -97,6 +95,6 @@ jobs: | |
- name: build tauri | ||
run: yarn run build:github-pr | ||
env: | ||
# Mocked keys. | ||
TAURI_PRIVATE_KEY: "dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5ZUYrUFF0RS9ZbU5EN0VFWk52TmpDRDQvTFFWOHhqSXNkZFVvUjZSRWNJc0FBQkFBQUFBQUFBQUFBQUlBQUFBQTZhNUxkYVFJWDNWTENKR2tSNzFVcDhsRzcvd0lKeWRGcytBZDNyZ3o3OWRXOWVmbmZCQktJYk8xOHVHWG5CZ25XN1pBOXM3SjMyWW1DRFNZWFJ5WGxsd3B6d3RvOEtTNHFFbFM5VE5obmNEZ1dHeEljVFRhZ2FXa0RzNHZOVkNESE5DdDArUmkvUUE9Cg==" | ||
TAURI_KEY_PASSWORD: "mock" | ||
# Mocked keys. | ||
TAURI_PRIVATE_KEY: 'dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5ZUYrUFF0RS9ZbU5EN0VFWk52TmpDRDQvTFFWOHhqSXNkZFVvUjZSRWNJc0FBQkFBQUFBQUFBQUFBQUlBQUFBQTZhNUxkYVFJWDNWTENKR2tSNzFVcDhsRzcvd0lKeWRGcytBZDNyZ3o3OWRXOWVmbmZCQktJYk8xOHVHWG5CZ25XN1pBOXM3SjMyWW1DRFNZWFJ5WGxsd3B6d3RvOEtTNHFFbFM5VE5obmNEZ1dHeEljVFRhZ2FXa0RzNHZOVkNESE5DdDArUmkvUUE9Cg==' | ||
TAURI_KEY_PASSWORD: 'mock' |
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
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 |
---|---|---|
|
@@ -16,7 +16,6 @@ jobs: | |
ts-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Setup Node.js | ||
- name: setup node | ||
uses: actions/[email protected] | ||
|
@@ -44,10 +43,10 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set rust_version from rust_toolchain file | ||
run: echo "RUST_VERSION=$(cat src-tauri/rust-toolchain)" >> $GITHUB_ENV | ||
|
||
- uses: actions-rs/[email protected] | ||
with: | ||
profile: minimal | ||
|
@@ -61,12 +60,12 @@ jobs: | |
- name: cache rust | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: "libra" # to share across CI builds, so it is not job-id specific | ||
shared-key: 'libra' # to share across CI builds, so it is not job-id specific | ||
cache-on-failure: true | ||
|
||
- name: check format | ||
working-directory: ./src-tauri | ||
run: cargo fmt --all -- --check | ||
run: cargo fmt --all -- --check | ||
|
||
- name: lint | ||
working-directory: ./src-tauri | ||
|
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 |
---|---|---|
|
@@ -13,11 +13,11 @@ on: | |
- 'release-[0-9]+.[0-9]+.[0-9]+' | ||
- 'ci' | ||
jobs: | ||
build-and-publish: | ||
build-and-publish: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ windows-latest, macos-latest ] | ||
os: [windows-latest, macos-latest] | ||
name: build ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -45,7 +45,7 @@ jobs: | |
if: matrix.os == 'windows-latest' | ||
uses: KyleMayes/install-llvm-action@v1 | ||
with: | ||
version: "11.0" | ||
version: '11.0' | ||
directory: ${{ runner.temp }}/llvm | ||
|
||
- name: Set LIBCLANG_PATH | ||
|
@@ -59,17 +59,16 @@ jobs: | |
$var = (get-item $(rustup which rustc)).Directory.Parent.FullName+ '\lib\rustlib\' + (rustc -vV | findstr "host:*").split(':')[1].Trim() + '\lib' | ||
Copy-Item ('${{ github.workspace }}' + '\redist' + '\x86_64\*') -Destination $var -Recurse | ||
######## CACHE ######## | ||
######## CACHE ######## | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: ./src-tauri | ||
shared-key: "${{ matrix.os }}" | ||
cache-all-crates: true | ||
cache-on-failure: true | ||
workspaces: ./src-tauri | ||
shared-key: '${{ matrix.os }}' | ||
cache-all-crates: true | ||
cache-on-failure: true | ||
|
||
######## BUILD ######## | ||
######## BUILD ######## | ||
|
||
- name: yarn installation | ||
run: yarn install | ||
|
@@ -82,9 +81,9 @@ jobs: | |
id: build-tauri | ||
uses: tauri-apps/[email protected] | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
TAURI_PRIVATE_KEY: "${{secrets.TAURI_PRIVATE_KEY}}" | ||
TAURI_KEY_PASSWORD: "${{secrets.TAURI_KEY_PASSWORD}}" | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
TAURI_PRIVATE_KEY: '${{secrets.TAURI_PRIVATE_KEY}}' | ||
TAURI_KEY_PASSWORD: '${{secrets.TAURI_KEY_PASSWORD}}' | ||
with: | ||
args: ${{contains(github.ref, 'canary') && '--config src-tauri/tauri.conf.canary.json --features carpe-canary' || '' }} | ||
# pass the rust feature flags for canary if the tag includes "canary" | ||
|
@@ -95,4 +94,3 @@ jobs: | |
releaseDraft: true | ||
prerelease: false | ||
includeUpdaterJson: true | ||
|
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "." | ||
} | ||
] | ||
} | ||
"path": ".", | ||
}, | ||
], | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script type="module" crossorigin src="/assets/index-d5120c7d.js"></script> | ||
<link rel="stylesheet" href="/assets/index-e225b5d2.css"> | ||
<link rel="stylesheet" href="/assets/index-e225b5d2.css" /> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> | ||
<body></body> | ||
</html> |
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
Oops, something went wrong.