Files
icarus_dm/.github/workflows/rust-ubuntu-latest.yml
T
KD a372bfcc05 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
2025-03-12 20:58:29 -04:00

38 lines
832 B
YAML

name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
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: |
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