mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 09:08:42 +00:00
UltimMC: Fix macOS Actions
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -222,7 +222,7 @@ jobs:
|
|||||||
|
|
||||||
build-mac:
|
build-mac:
|
||||||
name: build-mac
|
name: build-mac
|
||||||
runs-on: macos-latest
|
runs-on: macos-13
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
@@ -244,7 +244,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
|
|
||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_C_COMPILER=/usr/bin/clang \
|
-DCMAKE_C_COMPILER=/usr/bin/clang \
|
||||||
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
|
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
|
||||||
@@ -266,20 +265,17 @@ jobs:
|
|||||||
- name: Compile
|
- name: Compile
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
|
|
||||||
make -j$(sysctl -n hw.logicalcpu)
|
make -j$(sysctl -n hw.logicalcpu)
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
|
|
||||||
make test
|
make test
|
||||||
cmake -E remove_directory "/Users/runner/work/UltimMC/build/dist"
|
cmake -E remove_directory "/Users/runner/work/UltimMC/build/dist"
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
|
|
||||||
make install
|
make install
|
||||||
chmod +x /Users/runner/work/UltimMC/build/dist/UltimMC.app/Contents/MacOS/UltimMC
|
chmod +x /Users/runner/work/UltimMC/build/dist/UltimMC.app/Contents/MacOS/UltimMC
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user