Skip to content

Commit

Permalink
feat: Restructure Repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Jul 27, 2024
1 parent 46feb2f commit 19b149a
Show file tree
Hide file tree
Showing 43 changed files with 130 additions and 1,616 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/Index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
- main
- development
paths:
- "Tools/Indexer/**"
- "Source/Indexer/**"
- "Packages/**"
pull_request:
branches:
- main
- development
paths:
- "Tools/Indexer/**"
- "Source/Indexer/**"
- "Packages/**"
workflow_dispatch:
workflow_call:
Expand All @@ -39,27 +39,27 @@ jobs:
env:
cache-name: cache-indexer
with:
path: ./Tools/Indexer/index
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./Tools/Indexer/**') }}
path: ./Source/Indexer/index
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./Source/Indexer/**') }}
- name: Install Dependencies
if: steps.cache-indexer.outputs.cache-hit != 'true'
run: sudo apt-get install -y libssl-dev pkg-config
- name: Build
if: steps.cache-indexer.outputs.cache-hit != 'true'
working-directory: ./Tools/Indexer
working-directory: ./Source/Indexer
run: |
cargo build --bin index --verbose --release
- name: Prepare Upload
if: steps.cache-indexer.outputs.cache-hit != 'true'
working-directory: ./Tools/Indexer
working-directory: ./Source/Indexer
run: |
cp target/release/index .
- name: Upload Indexer
uses: actions/upload-artifact@v4
with:
name: Indexer
path: |
./Tools/Indexer/index
./Source/Indexer/index
index:
needs: build
runs-on: ubuntu-latest
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/Website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ jobs:
- name: Add Toolchain ARM64
run: rustup target add aarch64-unknown-linux-gnu
- name: Build for ARM64
working-directory: ./Website
working-directory: ./Source/Website
run: |
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc
cargo build --verbose --target aarch64-unknown-linux-gnu --release
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install PNPM packages
working-directory: ./Website
working-directory: ./Source/Website
run: pnpm install
- name: Run Tailwind
working-directory: ./Website
working-directory: ./Source/Website
run: pnpm run tailwind
- name: Prepare Upload
working-directory: ./Website
working-directory: ./Source/Website
run: |
cp target/aarch64-unknown-linux-gnu/release/FicsIt-Networks-Repository-Website .
chmod 770 ./FicsIt-Networks-Repository-Website
Expand All @@ -59,8 +59,8 @@ jobs:
with:
name: Website
path: |
./Website/FicsIt-Networks-Repository-Website
./Website/static/
./Source/Website/FicsIt-Networks-Repository-Website
./Source/Website/static/
deploy:
needs: build
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
Expand All @@ -71,14 +71,14 @@ jobs:
uses: actions/download-artifact@v4
with:
name: Website
path: ./Website
path: ./Source/Website
- name: Copy Website artifact to server
uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
key: ${{ secrets.DEPLOY_KEY }}
source: "./Website/*"
source: "./Source/Website/*"
target: ${{ secrets.DEPLOY_FOLDER }}
- name: Docker Compose
uses: appleboy/[email protected]
Expand Down
File renamed without changes.
108 changes: 69 additions & 39 deletions Website/Cargo.lock → Source/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Source/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[workspace]

members = [
"Indexer", "Repository",
"Website",
]
2 changes: 2 additions & 0 deletions Source/Indexer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
target
Loading

0 comments on commit 19b149a

Please sign in to comment.