Skip to content

Commit

Permalink
Merge pull request #1 from SyntaxSpirits/github-actions
Browse files Browse the repository at this point in the history
update github actions config
  • Loading branch information
kholdrex authored Jun 9, 2024
2 parents fe0f27e + b3a4183 commit 445035a
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 445035a

Please sign in to comment.