Skip to content

Commit

Permalink
Misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Piratey7007 committed Nov 18, 2023
1 parent a4161c0 commit 94066f0
Show file tree
Hide file tree
Showing 44 changed files with 11,612 additions and 30 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build.yml
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
61 changes: 61 additions & 0 deletions .github/workflows/eslint_clippy.yml
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

31 changes: 2 additions & 29 deletions .gitignore
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
1 change: 1 addition & 0 deletions Signal
Submodule Signal added at 28d93f
Loading

0 comments on commit 94066f0

Please sign in to comment.