Skip to content

Commit

Permalink
Merge branch 'dev' into refactor/RB-65-refactor-to-dense-sparse-arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeAbel committed Sep 30, 2023
2 parents 1fa1c4c + bb6a978 commit 5dfe603
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ jobs:
- name: Build
run: ./scripts/bundle-windows.ps1

- name: LIST ALL
run: Get-ChildItem build -Recurse

- name: Upload To Release
if: github.ref == 'refs/heads/main'
env:
Expand Down Expand Up @@ -93,9 +90,6 @@ jobs:
- name: Build
run: ./scripts/bundle-linux.sh

- name: LIST ALL
run: ls -Rl build

- name: Upload To Release
if: github.ref == 'refs/heads/main'
env:
Expand Down Expand Up @@ -132,23 +126,27 @@ jobs:
- name: Build
run: ./scripts/bundle-macos.sh

- name: LIST ALL
run: ls -Rl build

- name: Upload To Release
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ needs.release-create.outputs.release }} ./r-type-macos.zip
# gh release upload ${{ needs.release-create.outputs.release }} ./r-type-linux.sh
gh release upload ${{ needs.release-create.outputs.release }} ./r-type-macos.dmg
- name: Upload To Artifact
if: github.ref != 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: r-type-macos.dmg
path: ./r-type-macos.dmg

- name: Upload To Artifact
if: github.ref != 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: r-type-macos.sh
path: ./r-type-macos.sh
name: r-type-macos.zip
path: ./r-type-macos.zip

raylib-to-tar:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# R-Bus

[![Release](https://github.com/X-R-G-B/R-Bus/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/X-R-G-B/R-Bus/actions/workflows/release.yml)

[![Compil](https://github.com/X-R-G-B/R-Bus/actions/workflows/compil.yml/badge.svg?branch=main)](https://github.com/X-R-G-B/R-Bus/actions/workflows/compil.yml)

```
R-Type[a] is a horizontally scrolling shooter arcade video game developed
Expand Down
4 changes: 3 additions & 1 deletion scripts/bundle-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

set -ex

rm -rf build

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release

cmake --build build
Expand All @@ -15,4 +17,4 @@ mv R-Type-Linux.sh ../r-type-linux.sh

cpack --config CPackSourceConfig.cmake -G TGZ

mv R-Type-Source.tar.gz ../r-type-linux.tar.gz
mv R-Type-Linux.tar.gz ../r-type-linux.tar.gz
6 changes: 5 additions & 1 deletion scripts/bundle-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

set -ex

rm -rf build

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release

cmake --build build
Expand All @@ -11,6 +13,8 @@ cd build || exit 14

cpack --config CPackConfig.cmake -G DragNDrop || (cat "./_CPack_Packages/Darwin/DragNDrop/PreinstallOutput.log" && exit 1)

cp R-Type-Darwin.dmg ../r-type-macos.dmg

cpack --config CPackSourceConfig.cmake -G ZIP

ls -l
cp R-Type-Darwin.zip ../r-type-macos.zip
8 changes: 4 additions & 4 deletions scripts/bundle-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

$ErrorActionPreference = "SilentlyContinue"

./scripts/compil.ps1
rm -Recurse build

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES="Release"

cmake --build build
cmake --build build --config Release

cd build

Expand All @@ -17,10 +17,10 @@ if ($LASTEXITCODE -ne 0) {
type _CPack_Packages/win64/NSIS/NSISOutput.log
}

Copy-Item R-Type-win64.exe ../r-type-windows.exe
Copy-Item R-Type-Windows.exe ../r-type-windows.exe

cpack --config CPackSourceConfig.cmake -G ZIP

Copy-Item R-Type-Source.zip ../r-type-windows.zip
Copy-Item R-Type-Windows.zip ../r-type-windows.zip

cd ..
11 changes: 2 additions & 9 deletions scripts/compil.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@

$ErrorActionPreference = 'Stop'

cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

cmake --build build

$file = "build/_deps/raylib-build/raylib/Release/raylib.lib"

if (-not(Test-Path -Path $file -PathType Leaf)) {
New-Item -Name "build/_deps/raylib-build/raylib/Release" -Type Directory -Force
Copy-Item "build/_deps/raylib-build/raylib/Debug/raylib.lib" $file
}
cmake --build build -- /m

0 comments on commit 5dfe603

Please sign in to comment.