Skip to content

Commit

Permalink
update github actions config
Browse files Browse the repository at this point in the history
  • Loading branch information
kholdrex committed Jun 9, 2024
1 parent fe0f27e commit b3a4183
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@ on:
branches: [ main ]

jobs:
build:

build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y curl

- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
env:
PATH: $HOME/.cargo/bin:$PATH
- name: Build
shell: bash

- name: Add Rust to PATH
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Build project
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

0 comments on commit b3a4183

Please sign in to comment.