From 71d31e3cd4090ae5118b525ef1c8b800e2c4950c Mon Sep 17 00:00:00 2001 From: Lennard Kittner Date: Tue, 13 Jun 2023 10:31:31 +0200 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..37ba7b3 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,50 @@ +name: Rust + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Rust + uses: actions/setup-rust@v1 + with: + rust-version: stable + - name: Build + run: cargo build --verbose + - name: Run CLI + run: cargo run --bin cli_app + + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Rust + uses: actions/setup-rust@v1 + with: + rust-version: stable-x86_64-pc-windows-msvc + - name: Build + run: cargo build --verbose + - name: Run CLI + run: cargo run --bin cli_app + + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Rust + uses: actions/setup-rust@v1 + with: + rust-version: stable + - name: Build + run: cargo build --verbose + - name: Run CLI + run: cargo run --bin cli_app