Skip to content

Commit

Permalink
add github workflow (#32)
Browse files Browse the repository at this point in the history
Summary:
sets up a github workflw to cargo build/test on ubuntu 22.04.

Pull Request resolved: #32

Reviewed By: dtolnay

Differential Revision: D52705848

Pulled By: shayne-fletcher

fbshipit-source-id: 9913d105a20dfa9f4a1fffd82323e8dbd9c0e596
  • Loading branch information
Shayne Fletcher authored and facebook-github-bot committed Jan 11, 2024
1 parent 3963cc6 commit ff28220
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .circleci/config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/actions/setup_linux_env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Setup Linux environment
description: |
Setup Linux environment for building and testing Reindeer.
runs:
using: composite
steps:
- uses: SebRollen/[email protected]
id: read_rust_toolchain
with:
file: rust-toolchain
field: toolchain.channel
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ steps.read_rust_toolchain.outputs.value }}
- uses: Swatinem/rust-cache@v2
with:
prefix-key: reindeer-upload
12 changes: 12 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Build and test
on:
push:
pull_request:
jobs:
linux-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_linux_env
- run: cargo build --locked
- run: cargo test
2 changes: 2 additions & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "nightly-2023-10-01"

0 comments on commit ff28220

Please sign in to comment.