mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
ci: build CMake project on GitHub actions
This commit is contained in:
parent
9361f783cf
commit
7b15cffe2d
1 changed files with 12 additions and 0 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -14,10 +14,15 @@ jobs:
|
|||
os: macos-latest
|
||||
artifact: true
|
||||
autotools: true
|
||||
cmake: true
|
||||
- name: Ubuntu
|
||||
os: ubuntu-latest
|
||||
artifact: true
|
||||
autotools: true
|
||||
cmake: true
|
||||
- name: MSVC
|
||||
os: windows-latest
|
||||
cmake: true
|
||||
|
||||
name: "Build - ${{ matrix.name }}"
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
@ -44,6 +49,13 @@ jobs:
|
|||
if: ${{ matrix.autotools }}
|
||||
run: make dist
|
||||
|
||||
- name: Configure (CMake)
|
||||
if: ${{ matrix.cmake }}
|
||||
run: cmake -S . -B build
|
||||
- name: Build (CMake)
|
||||
if: ${{ matrix.cmake }}
|
||||
run: cmake --build build
|
||||
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: ${{ matrix.artifact && always() && steps.make-dist.outcome == 'success' }}
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue