mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 05:26:13 +01:00
Harden our GitHub Actions workflows
This commit is contained in:
1 parent
9fe9c109af
commit
bad0295fb9
3 files changed
+35
-1
No files matched your search
@@ -2,6 +2,8 @@ name: CI
|
||||
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: environment-${{github.ref}}
|
||||
cancel-in-progress: true
|
||||
@@ -50,6 +52,7 @@ jobs:
|
||||
- name: Checkout SFML
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
repository: SFML/SFML
|
||||
ref: ${{env.SFML_VERSION}}
|
||||
path: SFML
|
||||
@@ -68,6 +71,7 @@ jobs:
|
||||
- name: Checkout CSFML
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
path: CSFML
|
||||
|
||||
- name: Configure CSFML CMake
|
||||
@@ -97,6 +101,8 @@ jobs:
|
||||
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Format Code
|
||||
run: cmake -DCLANG_FORMAT_EXECUTABLE=clang-format-17 -P cmake/Format.cmake
|
||||
@@ -124,6 +130,7 @@ jobs:
|
||||
- name: Checkout SFML
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
repository: SFML/SFML
|
||||
ref: ${{env.SFML_VERSION}}
|
||||
path: SFML
|
||||
@@ -137,6 +144,7 @@ jobs:
|
||||
- name: Checkout CSFML
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
path: CSFML
|
||||
|
||||
- name: Configure CSFML CMake
|
||||
@@ -164,6 +172,7 @@ jobs:
|
||||
- name: Checkout SFML
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
repository: SFML/SFML
|
||||
ref: ${{env.SFML_VERSION}}
|
||||
path: SFML
|
||||
@@ -177,6 +186,7 @@ jobs:
|
||||
- name: Checkout CSFML
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
path: CSFML
|
||||
|
||||
- name: Configure CSFML
|
||||
|
||||
Reference in new issue
Block a user