-
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.
- Loading branch information
Piratey7007
committed
Nov 18, 2023
1 parent
a4161c0
commit 94066f0
Showing
44 changed files
with
11,612 additions
and
30 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Build the application | ||
|
||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repository code | ||
uses: actions/checkout@v3 | ||
|
||
# Cache Rust | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./src-tauri/target | ||
key: ${{matrix.os}}-${{ hashFiles('./src-tauri/Cargo.lock') }} | ||
|
||
# Cache Rust | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cargo | ||
key: ${{matrix.os}}-${{ hashFiles('./src-tauri/Cargo.lock') }} | ||
|
||
# Cache Node | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./node_modules | ||
key: ${{matrix.os}}-${{ hashFiles('./package-lock.json') }} | ||
|
||
# Cache Next.js | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./src-next/.next | ||
key: ${{matrix.os}} | ||
|
||
- name: Install Node.js v20.9.0 LTS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.9.0 | ||
|
||
- name: Install Rust with Clippy | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- name: Install Tauri dependencies | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
sudo apt-get update | ||
sudo apt install libdbus-1-dev libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev | ||
- name: Install node dependencies | ||
run: npm install | ||
|
||
- name: Build application | ||
run: npm run tauri build |
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Run Eslint and Clippy | ||
|
||
name: Eslint & Clippy | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
eslint_and_clippy: | ||
strategy: | ||
fail-fast: true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository code | ||
uses: actions/checkout@v3 | ||
|
||
# Cache Rust | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./src-tauri/target | ||
key: ${{ hashFiles('./src-tauri/Cargo.lock') }} | ||
|
||
# Cache Rust | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cargo | ||
key: ${{ hashFiles('./src-tauri/Cargo.lock') }} | ||
|
||
# Cache Node | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ./node_modules | ||
key: ${{ hashFiles('./package-lock.json') }} | ||
|
||
- name: Install Node.js v16 LTS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install Rust with Clippy | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- name: Install Tauri dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt install libdbus-1-dev libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev | ||
- name: Create empty 'dist' directory for Tauri generate context | ||
run: mkdir dist | ||
|
||
- name: Install node dependencies | ||
run: npm install | ||
|
||
- name: Run Eslint | ||
run: npm run lint | ||
|
||
- name: Run Clippy | ||
run: npm run clippy | ||
|
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,29 +1,2 @@ | ||
# build output | ||
dist/ | ||
|
||
# generated types | ||
.astro/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store | ||
|
||
attachments | ||
messages.json | ||
conversations.json | ||
other_data.json | ||
Signal | ||
|
||
conversations_template.json | ||
node_modules | ||
dist |
Submodule Signal
added at
28d93f
Oops, something went wrong.