Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/ci sync #7

Merged
merged 7 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/sync-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Project Test Run"

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Installing Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: ankane/setup-postgres@v1
with:
postgres-version: 15
- name: Download PKG Databases
run: ./scripts/get_pkgs.sh
- name: Init Local Database
run: ./scripts/init_db.sh
- name: Building with Cargo
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Run DBGen Parse
run: cargo run --release --bin dbgen
- name: Run AUR Parser
run: cargo run --release --bin aurparser
- name: Run Additional Scripts
run: |
curl https://github.com/Roxedus/Pgloader-bin/releases/download/ec8f41d/pgloader -L -o pgloader
chmod +x pgloader
./pgloader sqlite://db/local.db ${{ secrets.PG_CONNECTION_STRING }}
- uses: actions/upload-artifact@v4
with:
name: localdbs
path: |
**/local.db
db/local.db
2 changes: 2 additions & 0 deletions .github/workflows/test-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Download PKG Databases
run: ./scripts/get_pkgs.sh
- name: Init Local Database
run: ./scripts/init_db.sh
- name: Building with Cargo
uses: actions-rs/cargo@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
pkgs/*
!pkgs/.gitkeep
db/*
!db/.gitkeep
target/
*.db
4 changes: 1 addition & 3 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[workspace]
members = [
"packages/aurparser",
"packages/dbgen", "packages/repoparser",
"packages/dbgen",
"packages/repoparser",
"packages/archlinux-repo-parser",
]
Empty file added db/.gitkeep
Empty file.
7 changes: 7 additions & 0 deletions packages/archlinux-repo-parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "archlinux-repo-parser"
version = "0.1.0"
edition = "2021"

[dependencies]
serde = { version = "1.0.127", features = ["derive"] }
Loading
Loading