From a372bfcc051429e8c9cd870b9b9e447f3e835b4e Mon Sep 17 00:00:00 2001 From: KD Date: Wed, 12 Mar 2025 20:58:29 -0400 Subject: [PATCH] Added icarus-models (#30) * Added icarus-models * Updated workflow * Added ci workflow for ssh keys * More changes * More changes. again * More changes. again.agg * Another one * Using secrets * Forgot dereference * Added variables * Checking regular variable * Updating * Repository secret * Checking size * Another one * Another one * Another one * Another one * Another one * Cargo file fix * Another one * Reorder * Addded another step * Change * Another step * Remove step * Remove step * Move on up * Remove * Cleanup * Cleanup --- .github/workflows/rust-ubuntu-latest.yml | 20 ++++++++++++++++++-- Cargo.toml | 1 + 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust-ubuntu-latest.yml b/.github/workflows/rust-ubuntu-latest.yml index 000bb2c..88b1479 100644 --- a/.github/workflows/rust-ubuntu-latest.yml +++ b/.github/workflows/rust-ubuntu-latest.yml @@ -16,7 +16,23 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Rust version + run: rustup install 1.85.0 && rustup default 1.85.0 + + - name: Debug secret + run: echo "${{ secrets.GITLAB_TOKEN }}" | head -c 10 ; echo "..." + - name: Build - run: cargo build --verbose + run: | + mkdir -p ~/.ssh + echo "$EXTREPO_KEY" > ~/.ssh/gitlab_deploy_key + chmod 600 ~/.ssh/gitlab_deploy_key + ssh-keyscan gitlab.com >> ~/.ssh/known_hosts + eval $(ssh-agent -s) + ssh-add -v ~/.ssh/gitlab_deploy_key + cargo build --release + env: + EXTREPO_KEY: ${{ secrets.GITLAB_TOKEN }} + - name: Run tests - run: cargo test --verbose + run: cargo test --verbose \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index ca90cc5..1fbe048 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,4 @@ serde = { version = "1.0.219", features = ["derive"] } serde_json = "1.0.140" tokio = { version = "1.44.0", features = ["full"] } tokio-util = { version = "0.7.13", features = ["codec"] } +icarus-models = { git = "ssh://git@gitlab.com/kdeng00/icarus-models.git", tag = "v0.1.1" }