Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt MacOS build with Github Actions #14

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/clangformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
lua_lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.11
with:
source: "./cpp"
Expand Down
38 changes: 32 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'true'

Expand All @@ -45,15 +45,15 @@ jobs:
run: cmake --build . --target gdiscord --config MinSizeRel

- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{matrix.config.artifact}}
path: ${{runner.workspace}}\build\MinSizeRel\${{matrix.config.artifact}}

linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'true'

Expand All @@ -75,15 +75,15 @@ jobs:
run: cmake --build . --target gdiscord

- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: "gmcl_gdiscord_linux.dll"
path: ${{runner.workspace}}/build/gmcl_gdiscord_linux.dll

linux64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: 'true'

Expand All @@ -101,7 +101,33 @@ jobs:
run: cmake --build . --target gdiscord

- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: "gmcl_gdiscord_linux64.dll"
path: ${{runner.workspace}}/build/gmcl_gdiscord_linux64.dll

mac64:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE/cpp -D64BIT=ON

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --target gdiscord

- name: Upload
uses: actions/upload-artifact@v3
with:
name: "gmcl_gdiscord_mac64.dll"
path: ${{runner.workspace}}/build/gmcl_gdiscord_linux64.dll
Loading