Skip to content

Commit

Permalink
ci: setup build/test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Gabriel committed Jan 27, 2024
1 parent 8ad7ed0 commit 3b43a7a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Pre-Release

on:
push:
branches: ["ci/test_build_test"]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read

jobs:
test_rust:
name: Test Rust
runs-on: ubuntu-22.04
env:
CC: gcc-12
CXX: g++-12

steps:
- uses: actions/checkout@v4
- run: git submodule update --init --recursive

- name: Update compilers
run: |
sudo apt update
sudo apt install -y cmake build-essential libjemalloc-dev libomp-dev gcc-12 g++-12
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Build and Test
uses: actions-rs/cargo@v1
with:
command: test

0 comments on commit 3b43a7a

Please sign in to comment.