From b2b4d5bf9aa53537b8040cf317a0c307aa722c29 Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Fri, 4 Feb 2022 17:26:31 -0800 Subject: [PATCH] add basic CI support (#46) * add intiial ci.yml * add shell * setup clang --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 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..1796aa7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: + pull_request: + push: + branches: + - master + - ci + tags: + - 'v0.[0-9]+.[0-9]+' + - 'v0.[0-9]+.[0-9]+-beta.[0-9]+' + - 'v0.[0-9]+.[0-9]+-alpha.[0-9]+' + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - name: Get the build metadata + shell: bash + run: | + echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + + - name: Setup MSVC + uses: bus1/cabuild/action/msdevshell@v1 + with: + architecture: x64 + + - name: Set up Clang + uses: egor-tensin/setup-clang@v1 + with: + version: latest + platform: x64 + + - name: Configure + shell: cmd + run: configure.cmd + + - name: Build + shell: cmd + run: build.cmd