mirror of https://github.com/flysand7/ciabatta.git
42 lines
962 B
YAML
42 lines
962 B
YAML
name: Linux
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- 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
|
|
with:
|
|
version: latest
|
|
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
|
|
- name: Setup NASM
|
|
uses: ilammy/setup-nasm@v1
|
|
with:
|
|
from-source: false
|
|
- 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 linux --test tests/hello.c
|