-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
310 changed files
with
15,789 additions
and
11,657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
# build-mac | ||
|
||
This is a custom GitHub action to build an X-Plane plugin on and for MacOS based on a prepared CMake setup. | ||
This is a custom GitHub action to build a framwork for MacOS based on a prepared CMake setup. | ||
|
||
## Inputs | ||
|
||
Parameter|Requied|Default|Description | ||
---------|-------|-------|------------ | ||
`pluginName`|yes||Plugin's name, used both as top-level folder name and as file name as required by X-Plane | ||
`archFolder`|yes|`mac_x64`|Subfolder in which the executable is placed, is based on architecture like 'mac_x64' | ||
`libName`|yes | |Library's name, used as file name | ||
`flags` |no | |Flags to be passed to CMake | ||
|
||
## What it does | ||
|
||
- Installs Ninja | ||
- Creates build folder `build-mac` | ||
- There, runs `cmake`, then `ninja` to build | ||
- Zips the framework, including the `-y` parameter to preserve symlinks | ||
|
||
## Outputs | ||
|
||
Output|Description | ||
------|----------- | ||
`xpl-file-name`|path to the produced xpl file | ||
`lib-file-name`|path to the produced zip archive of the framework |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# build-mac | ||
# build-win | ||
|
||
This is a custom GitHub action to build an X-Plane plugin on and for MacOS based on a prepared CMake setup. | ||
This is a custom GitHub action to build a library on and for Windows based on a prepared CMake setup. | ||
|
||
## Inputs | ||
|
||
Parameter|Requied|Default|Description | ||
---------|-------|-------|------------ | ||
`pluginName`|yes||Plugin's name, used both as top-level folder name and as file name as required by X-Plane | ||
`archFolder`|yes|`mac_x64`|Subfolder in which the executable is placed, is based on architecture like 'mac_x64' | ||
`libName`|yes | |Library's name, used as file name | ||
`flags` |no | |Flags to be passed to CMake | ||
|
||
## What it does | ||
|
||
- Installs Ninja | ||
- Creates build folder `build-mac` | ||
- There, runs `cmake`, then `ninja` to build | ||
- Runs a separate command file, `build-win.cmd`, which in tun | ||
- Creates build folder `build-win` | ||
- There, runs `CMAKE`, then `NMAKE` to build | ||
|
||
## Outputs | ||
|
||
Output|Description | ||
------|----------- | ||
`xpl-file-name`|path to the produced xpl file | ||
`lib-file-name`|path to the produced lib file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,38 @@ | ||
name: Build Windows / MSVC / CMake | ||
description: Build a Windows plugin with MS Visual Studio based on a CMake setup | ||
description: Build a Windows library with MS Visual Studio based on a CMake setup | ||
author: TwinFan | ||
|
||
inputs: | ||
pluginName: | ||
description: "Plugin's name, used both as top-level folder name and as file name as required by X-Plane" | ||
libName: | ||
description: "Library's name, used as file name" | ||
required: true | ||
archFolder: | ||
description: "Subfolder in which the executable is placed, is based on architecture like 'win_x64'" | ||
required: true | ||
default: win_x64 | ||
flags: | ||
description: "Flags to be passed to CMake" | ||
required: false | ||
|
||
outputs: | ||
xpl-file-name: | ||
description: Path to the resulting xpl file | ||
value: ${{ steps.return.outputs.xpl-file-name }} | ||
pdb-file-name: | ||
description: Path to the resulting pdb file (debug symbol info) | ||
value: ${{ steps.return.outputs.pdb-file-name }} | ||
lib-file-name: | ||
description: Path to the resulting lib | ||
value: ${{ steps.return.outputs.lib-file-name }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Build | ||
shell: cmd | ||
run: ${{ github.action_path }}\build-win.cmd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" build-win | ||
run: ${{ github.action_path }}\build-win.cmd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" build-win "${{ inputs.flags }}" | ||
- name: Test for Target | ||
shell: bash | ||
env: | ||
TARGET_XPL: build-win/${{ inputs.archFolder }}/${{ inputs.pluginName }}.xpl | ||
TARGET_LIB: build-win/${{ inputs.libName }}.lib | ||
run: | | ||
if [[ ! -f "$TARGET_XPL" ]]; then | ||
echo Expected target build not found: "$TARGET_XPL" | ||
if [[ ! -f "$TARGET_LIB" ]]; then | ||
echo Expected target build not found: "$TARGET_LIB" | ||
exit 1 | ||
fi | ||
- name: Return Value | ||
id: return | ||
shell: bash | ||
env: | ||
TARGET_XPL: build-win/${{ inputs.archFolder }}/${{ inputs.pluginName }}.xpl | ||
TARGET_PDB: build-win/${{ inputs.archFolder }}/${{ inputs.pluginName }}.pdb | ||
run: | | ||
echo "::set-output name=xpl-file-name::$(echo $TARGET_XPL)" | ||
echo "::set-output name=pdb-file-name::$(echo $TARGET_PDB)" | ||
TARGET_LIB: build-win/${{ inputs.libName }}.lib | ||
run: echo "lib-file-name=$(echo $TARGET_LIB)" >> $GITHUB_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.