mirror of
https://github.com/glfw/glfw.git
synced 2024-11-24 21:54:35 +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
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [ ci, master, latest, 3.3-stable ]
|
branches: [ ci, master, latest, 3.3-stable ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
statuses: write
|
statuses: write
|
||||||
contents: read
|
contents: read
|
||||||
@ -12,12 +15,13 @@ jobs:
|
|||||||
build-linux-clang:
|
build-linux-clang:
|
||||||
name: Linux (Clang)
|
name: Linux (Clang)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 4
|
timeout-minutes: 40
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
CFLAGS: -Werror
|
CFLAGS: -Werror
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
@ -48,10 +52,19 @@ jobs:
|
|||||||
- name: Build Wayland+X11 shared library
|
- name: Build Wayland+X11 shared library
|
||||||
run: cmake --build build-full-shared --parallel
|
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:
|
build-macos-clang:
|
||||||
name: macOS (Clang)
|
name: macOS (Clang)
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
timeout-minutes: 4
|
timeout-minutes: 40
|
||||||
env:
|
env:
|
||||||
CFLAGS: -Werror
|
CFLAGS: -Werror
|
||||||
MACOSX_DEPLOYMENT_TARGET: 10.11
|
MACOSX_DEPLOYMENT_TARGET: 10.11
|
||||||
@ -74,10 +87,19 @@ jobs:
|
|||||||
- name: Build Cocoa shared library
|
- name: Build Cocoa shared library
|
||||||
run: cmake --build build-cocoa-shared --parallel
|
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:
|
build-windows-vs2022:
|
||||||
name: Windows (VS2022)
|
name: Windows (VS2022)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
timeout-minutes: 4
|
timeout-minutes: 40
|
||||||
env:
|
env:
|
||||||
CFLAGS: /WX
|
CFLAGS: /WX
|
||||||
steps:
|
steps:
|
||||||
@ -98,3 +120,11 @@ jobs:
|
|||||||
- name: Build Win32 shared x64 library
|
- name: Build Win32 shared x64 library
|
||||||
run: cmake --build build-win32-shared-x64 --parallel
|
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