Update github actions

This commit is contained in:
flysand7 2023-07-23 20:43:38 +11:00
parent 6390cd3622
commit 2222c6ecc7
4 changed files with 30 additions and 75 deletions

29
.github/workflows/build-linux.yml vendored Normal file
View File

@ -0,0 +1,29 @@
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: Setup NASM
uses: ilammy/setup-nasm@v1
- name: Set up Clang
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: bash
run: ./build.lua --clean --release --platform linux -t tests/empty.c

View File

@ -1,33 +0,0 @@
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
BUILD_CONFIGURATION: [CIA_DEBUG, CIA_RELEASE]
OS: [CIA_WINDOWS]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup NASM
uses: ilammy/setup-nasm@v1
- name: Setup MSVC Developer Command Prompt
uses: TheMrMilchmann/setup-msvc-dev@v2.0.0
with:
arch: x64
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
shell: pwsh
run: ./build.ps1 ${{matrix.BUILD_CONFIGURATION}} ${{matrix.OS}}

View File

@ -1,41 +0,0 @@
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
strategy:
matrix:
BUILD_CONFIGURATION: [CIA_DEBUG]
OS: [CIA_WINDOWS]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup NASM
uses: ilammy/setup-nasm@v1
- name: Setup MSVC Developer Command Prompt
uses: TheMrMilchmann/setup-msvc-dev@v2.0.0
with:
arch: x64
- name: Build ciabatta.lib
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: pwsh
run: ./build.ps1 ${{matrix.BUILD_CONFIGURATION}} ${{matrix.OS}}
- name: Build and run test suite
working-directory: ${{env.GITHUB_WORKSPACE}}
shell: pwsh
run: ./test.ps1 crt
- name: Test Summary
uses: test-summary/action@v2
with:
paths: "test/junit.xml"
if: always()

View File

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