diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index b2883c8..7db785e 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -28,4 +28,4 @@ jobs: - name: Build working-directory: ${{env.GITHUB_WORKSPACE}} shell: bash - run: ./build.py --mode release --target linux --test tests/empty.c + run: ./build.py --mode release --target linux --test tests/hello.c diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml new file mode 100644 index 0000000..d0cd8dc --- /dev/null +++ b/.github/workflows/build-windows.yml @@ -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 diff --git a/readme.md b/readme.md index 3b2da85..10a7f4b 100644 --- a/readme.md +++ b/readme.md @@ -2,6 +2,7 @@ # Ciabatta ![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 following goals: