Add windows build to CI

This commit is contained in:
flysand7 2023-07-28 22:47:06 +11:00
parent a71e49ca22
commit fff9716dc8
3 changed files with 33 additions and 1 deletions

View File

@ -28,4 +28,4 @@ jobs:
- name: Build - name: Build
working-directory: ${{env.GITHUB_WORKSPACE}} working-directory: ${{env.GITHUB_WORKSPACE}}
shell: bash shell: bash
run: ./build.py --mode release --target linux --test tests/empty.c run: ./build.py --mode release --target linux --test tests/hello.c

31
.github/workflows/build-windows.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: Windows
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64
- name: Setup NASM
uses: ilammy/setup-nasm@v1
- name: Set up Python
uses: actions/setup-python@v4
- name: Install python dependencies
run: python -m pip install pyjson5
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: bash
run: ./build.py --mode release --target windows --test tests/hello.c

View File

@ -2,6 +2,7 @@
# Ciabatta # Ciabatta
![Linux](https://github.com/flysand7/ciabatta/actions/workflows/build-linux.yml/badge.svg?event=push) ![Linux](https://github.com/flysand7/ciabatta/actions/workflows/build-linux.yml/badge.svg?event=push)
![Windows](https://github.com/flysand7/ciabatta/actions/workflows/build-windows.yml/badge.svg?event=push)
Ciabatta - An implementation of cross-platform C standard library with the Ciabatta - An implementation of cross-platform C standard library with the
following goals: following goals: