mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 10:05:10 +00:00
Update build.yml
This commit is contained in:
parent
b35641f4a3
commit
4fd231bbd5
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
@ -1,9 +1,12 @@
|
||||
|
||||
name: Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [ ci, master, latest, 3.3-stable ]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
statuses: write
|
||||
contents: read
|
||||
@ -12,12 +15,13 @@ jobs:
|
||||
build-linux-clang:
|
||||
name: Linux (Clang)
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 4
|
||||
timeout-minutes: 40
|
||||
env:
|
||||
CC: clang
|
||||
CFLAGS: -Werror
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt update
|
||||
@ -48,10 +52,19 @@ jobs:
|
||||
- name: Build Wayland+X11 shared library
|
||||
run: cmake --build build-full-shared --parallel
|
||||
|
||||
- name: SonarCloud Scan
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
run: |
|
||||
mvn sonar:sonar \
|
||||
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }} \
|
||||
-Dsonar.organization=${{ secrets.SONAR_ORG }} \
|
||||
-Dsonar.host.url=https://sonarcloud.io
|
||||
|
||||
build-macos-clang:
|
||||
name: macOS (Clang)
|
||||
runs-on: macos-latest
|
||||
timeout-minutes: 4
|
||||
timeout-minutes: 40
|
||||
env:
|
||||
CFLAGS: -Werror
|
||||
MACOSX_DEPLOYMENT_TARGET: 10.11
|
||||
@ -74,10 +87,19 @@ jobs:
|
||||
- name: Build Cocoa shared library
|
||||
run: cmake --build build-cocoa-shared --parallel
|
||||
|
||||
- name: SonarCloud Scan
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
run: |
|
||||
mvn sonar:sonar \
|
||||
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }} \
|
||||
-Dsonar.organization=${{ secrets.SONAR_ORG }} \
|
||||
-Dsonar.host.url=https://sonarcloud.io
|
||||
|
||||
build-windows-vs2022:
|
||||
name: Windows (VS2022)
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 4
|
||||
timeout-minutes: 40
|
||||
env:
|
||||
CFLAGS: /WX
|
||||
steps:
|
||||
@ -98,3 +120,11 @@ jobs:
|
||||
- name: Build Win32 shared x64 library
|
||||
run: cmake --build build-win32-shared-x64 --parallel
|
||||
|
||||
- name: SonarCloud Scan
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
run: |
|
||||
mvn sonar:sonar \
|
||||
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }} \
|
||||
-Dsonar.organization=${{ secrets.SONAR_ORG }} \
|
||||
-Dsonar.host.url=https://sonarcloud.io
|
||||
|
Loading…
Reference in New Issue
Block a user