Compare commits

...

10 Commits

Author SHA1 Message Date
Clément Fouché
46ca27705e release mode 2024-12-12 17:17:10 +01:00
Clément Fouché
3cc095454e fix name 2024-12-12 17:09:44 +01:00
Clément Fouché
fd1e4b9ba2 fix env var 2024-12-12 17:05:52 +01:00
Clément Fouché
4f199389f0 add auto tag 2024-12-12 16:58:26 +01:00
Clément Fouché
b9e8b32765 fix ci 2024-12-12 16:49:25 +01:00
23a54cc9d5 Fix CI release.yaml 2024-12-12 16:44:31 +01:00
Félix MARQUET
fd070bb30f Merge pull request #25 from BreizhHardware/ci
add release ci
2024-12-12 16:42:46 +01:00
Clément Fouché
d691c6af62 add release ci 2024-12-12 16:40:10 +01:00
Clément Fouché
081272f64f add release ci 2024-12-12 16:36:23 +01:00
Félix MARQUET
cea9007684 Merge pull request #23 from BreizhHardware/Random-spawn
Fix multiplayer crash and remove debug display
2024-12-12 16:00:20 +01:00
2 changed files with 74 additions and 2 deletions

View File

@@ -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
View 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 }}