-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
3963cc6
commit ff28220
Showing
4 changed files
with
31 additions
and
49 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[toolchain] | ||
channel = "nightly-2023-10-01" |