diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml new file mode 100644 index 0000000..3f1f3cc --- /dev/null +++ b/.github/workflows/build-linux.yml @@ -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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 1b59bfb..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -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}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 4a99146..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -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() - diff --git a/readme.md b/readme.md index 4b9cdd4..d28b955 100644 --- a/readme.md +++ b/readme.md @@ -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: