Skip to content

Commit

Permalink
👷 Disable macos build for now
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherFoxGuy committed Aug 9, 2024
1 parent 58709a2 commit 4afaf7e
Showing 1 changed file with 49 additions and 49 deletions.
98 changes: 49 additions & 49 deletions .github/workflows/build-game.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,52 +145,52 @@ jobs:
- name: Clean Conan pkgs
run: conan cache clean "*" -sbd

build-appleclang:
name: MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Cache conan
uses: actions/cache@v4
with:
key: conan-mac-${{ hashFiles('conanfile.py') }}
path: ~/.conan2/

- name: Install dependencies
run: brew install conan ninja

- name: Build
run: |
conan profile detect --force
conan install . -s build_type=Release -b missing -pr:b=default -c tools.cmake.cmaketoolchain:generator="Ninja"
cmake --preset conan-release -DCMAKE_INSTALL_PREFIX=redist
ninja
mkdir -p bin/Cytopia.App/Resources/resources
cp -pR data/resources bin/Cytopia.App/Contents/Resources/
cp -pR data/resources bin/resources
ninja package
rm -rf bin/Cytopia.App/Contents/MacOS/resources
rm -rf bin/Cytopia.App/Resources
shell: bash

- name: Test
run: ctest -j2 --output-on-failure
shell: bash

- name: Upload build to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
if: env.BUTLER_API_KEY != null && github.ref == 'refs/heads/master'
run: |
curl -JOL https://broth.itch.ovh/butler/darwin-amd64/LATEST/archive/default
mkdir redist
mv bin/Cytopia.app/ redist/
unzip butler-darwin-amd64.zip
./butler push redist cytopia/cytopia:osx-ci --userversion CIBuild-${GITHUB_RUN_NUMBER}-commit-${GITHUB_SHA}
shell: bash

- name: Clean Conan pkgs
run: conan cache clean "*" -sbd
# build-appleclang:
# name: MacOS
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true

# - name: Cache conan
# uses: actions/cache@v4
# with:
# key: conan-mac-${{ hashFiles('conanfile.py') }}
# path: ~/.conan2/

# - name: Install dependencies
# run: brew install conan ninja

# - name: Build
# run: |
# conan profile detect --force
# conan install . -s build_type=Release -b missing -pr:b=default -c tools.cmake.cmaketoolchain:generator="Ninja"
# cmake --preset conan-release -DCMAKE_INSTALL_PREFIX=redist
# ninja
# mkdir -p bin/Cytopia.App/Resources/resources
# cp -pR data/resources bin/Cytopia.App/Contents/Resources/
# cp -pR data/resources bin/resources
# ninja package
# rm -rf bin/Cytopia.App/Contents/MacOS/resources
# rm -rf bin/Cytopia.App/Resources
# shell: bash

# - name: Test
# run: ctest -j2 --output-on-failure
# shell: bash

# - name: Upload build to itch.io
# env:
# BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
# if: env.BUTLER_API_KEY != null && github.ref == 'refs/heads/master'
# run: |
# curl -JOL https://broth.itch.ovh/butler/darwin-amd64/LATEST/archive/default
# mkdir redist
# mv bin/Cytopia.app/ redist/
# unzip butler-darwin-amd64.zip
# ./butler push redist cytopia/cytopia:osx-ci --userversion CIBuild-${GITHUB_RUN_NUMBER}-commit-${GITHUB_SHA}
# shell: bash

# - name: Clean Conan pkgs
# run: conan cache clean "*" -sbd

0 comments on commit 4afaf7e

Please sign in to comment.