Skip to content

Commit

Permalink
add basic CI support (#46)
Browse files Browse the repository at this point in the history
* add intiial ci.yml
* add shell

* setup clang
  • Loading branch information
prabirshrestha authored Feb 5, 2022
1 parent 3d4735f commit b2b4d5b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b2b4d5b

Please sign in to comment.