From c67ed8a26f6468bcd92dc0ea0ea5f12957f77ab7 Mon Sep 17 00:00:00 2001 From: Kan-Ru Chen Date: Sun, 19 May 2024 22:37:16 +0900 Subject: [PATCH] ci: Add github actions ci.yaml --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..47936ab --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + merge_group: + types: [checks_requested] + +env: + RUST_VERSION: "1.70" + +jobs: + build: + runs-on: windows-latest + name: Smoke test - build only + + steps: + - uses: actions/checkout@v4 + + - if: ${{ matrix.os == 'windows-latest' }} + run: choco install ninja + - if: ${{ matrix.os == 'windows-latest' }} + uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 + + - name: Setup rustup + run: | + rustup default ${{ env.RUST_VERSION }} + rustup update + + - name: Build + run: | + cmake -B build + cmake --build build