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

42 lines
935 B
YAML
Raw Normal View History

2023-07-23 09:43:38 +00:00
name: Linux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
2023-07-28 12:08:28 +00:00
runs-on: ubuntu-latest
2023-07-23 09:43:38 +00:00
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
2023-07-28 12:10:13 +00:00
key: llvm-15
2023-07-28 11:57:42 +00:00
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
2023-07-23 09:43:38 +00:00
with:
2023-07-28 12:13:17 +00:00
version: "15"
2023-07-28 11:57:42 +00:00
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
2023-07-23 09:54:24 +00:00
- name: Setup NASM
uses: ilammy/setup-nasm@v1
2023-07-28 12:00:43 +00:00
with:
2023-07-28 12:16:35 +00:00
from-source: true
2023-07-26 22:21:39 +00:00
- name: Set up Python
uses: actions/setup-python@v4
- name: Install python dependencies
run: python -m pip install pyjson5
2023-07-23 09:43:38 +00:00
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: bash
run: ./build.py -m release -t tests/hello.c