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 0aa18e2..65e6eb5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,4 @@ serde = { version = "1.0.218", features = ["derive"] } serde_json = "1.0.139" tokio = { version = "1.43", 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" }