ciabatta/.github/workflows/build-windows.yml

42 lines
1008 B
YAML
Raw Normal View History

2023-07-28 11:47:06 +00:00
name: Windows
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
2023-07-28 11:57:42 +00:00
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v3
with:
path: |
C:/Program Files/LLVM
./llvm
key: llvm-3.5
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
2023-07-28 11:47:06 +00:00
with:
version: latest
2023-07-28 11:57:42 +00:00
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
2023-07-28 11:47:06 +00:00
- name: Setup NASM
uses: ilammy/setup-nasm@v1
2023-07-28 12:00:43 +00:00
with:
from-source: false
2023-07-28 11:47:06 +00:00
- 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