mirror of
https://github.com/BreizhHardware/bloubloulespoissons.git
synced 2026-01-19 17:17:27 +01:00
Compare commits
10 Commits
Random-spa
...
fix-ci
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46ca27705e | ||
|
|
3cc095454e | ||
|
|
fd1e4b9ba2 | ||
|
|
4f199389f0 | ||
|
|
b9e8b32765 | ||
| 23a54cc9d5 | |||
|
|
fd070bb30f | ||
|
|
d691c6af62 | ||
|
|
081272f64f | ||
|
|
cea9007684 |
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -4,7 +4,6 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- online
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -32,7 +31,7 @@ jobs:
|
||||
run: mkdir build
|
||||
|
||||
- name: Configure CMake
|
||||
run: cmake -S . -B build
|
||||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
- name: Build project
|
||||
run: cmake --build build -- -j $(nproc)
|
||||
|
||||
73
.github/workflows/release.yaml
vendored
Normal file
73
.github/workflows/release.yaml
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
name: Build and Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
image: fedora:latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up C++ environment
|
||||
run: |
|
||||
dnf install -y gcc gcc-c++ cmake make
|
||||
|
||||
- name: Install SDL2 dependencies
|
||||
run: |
|
||||
dnf install -y SDL2 SDL2-devel SDL2_image SDL2_image-devel SDL2_ttf SDL2_ttf-devel SDL2_net SDL2_net-devel SDL2_mixer SDL2_mixer-devel
|
||||
|
||||
- name: Clean build directory
|
||||
run: rm -rf build
|
||||
|
||||
- name: Create build directory
|
||||
run: mkdir build
|
||||
|
||||
- name: Configure CMake
|
||||
run: cmake -S . -B build
|
||||
|
||||
- name: Build project
|
||||
run: cmake --build build -- -j $(nproc)
|
||||
|
||||
- name: Archive build artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: build/
|
||||
|
||||
release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Download build artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: build-artifacts
|
||||
path: build/
|
||||
|
||||
- name: Generate release tag
|
||||
id: generate_release_tag
|
||||
uses: amitsingh-007/next-release-tag@v6.0.0
|
||||
with:
|
||||
github_token: ${{ secrets.GH_TOKEN }}
|
||||
tag_prefix: 'v'
|
||||
tag_template: 'yyyy.mm.dd.i'
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: Release ${{ steps.generate_release_tag.outputs.next_release_tag }}
|
||||
tag_name: ${{ steps.generate_release_tag.outputs.next_release_tag }}
|
||||
files: build/bloubloulespoissons
|
||||
generate_release_notes: true
|
||||
token: ${{secrets.GH_TOKEN}}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
Reference in New Issue
Block a user