Skip to content

Commit

Permalink
CICD: Fix macos release and compil for windows
Browse files Browse the repository at this point in the history
PATCH
  • Loading branch information
Saverio976 committed Sep 30, 2023
1 parent 057f3d4 commit f2cd9b3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 22 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
4 changes: 3 additions & 1 deletion scripts/bundle-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,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
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 f2cd9b3

Please sign in to comment.