Skip to content

Commit

Permalink
Draf rust CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
xermicus authored May 24, 2024
1 parent 5138fe3 commit 0e90f1f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-ubuntu-x86:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install LLVM
run: curl -sSL --output llvm.tar.xz https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.4/clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04.tar.xz
- name: Extract LLVM
run: tar Jxf llvm.tar.xz
- name: Add LLVM to Path
run: echo "$(pwd)/clang+llvm-18.1.4-x86_64-linux-gnu-ubuntu-18.04/bin" >> $GITHUB_PATH
- name: Format
run: make format
- name: Clippy
run: make clippy
- name: Integration
run: make test-integration

0 comments on commit 0e90f1f

Please sign in to comment.