Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli committed Nov 9, 2023
1 parent 4346f61 commit bbadde2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:
branches:
- main
# Run in PRs with conflicts (https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request)
pull_request:
branches:
- main
types: [opened, synchronize, reopened]

env:
GIT_LFS_SKIP_SMUDGE: 1
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: full

jobs:
build:
runs-on: [ubuntu-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup rust toolchain
uses: oxidecomputer/actions-rs_toolchain@ad3f86084a8a5acf2c09cb691421b31cf8af7a36
with:
profile: default
override: true
- name: Cache cargo registry
uses: actions/checkout@v3
- name: Build
run: cargo build --release

0 comments on commit bbadde2

Please sign in to comment.