Skip to content

Commit

Permalink
Update/XPMP2 and GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TwinFan committed Feb 3, 2024
1 parent 0467742 commit a1f5c09
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/actions/upload-plugin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ runs:
mv "${{ inputs.pdbFileName }}" "deploy-${{ inputs.pluginName }}/${{ inputs.pluginName }}/${{ inputs.archFolder }}"
fi
- name: Upload plugin
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.pluginName }}
name: ${{ inputs.pluginName }}-${{ env.platform }}
path: deploy-${{ inputs.pluginName }}/* # this way the top folder in the artifacts is "MyPlugin"
if-no-files-found: error
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
#####################################
# Linux with GCC
build-lin:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
env:
platform: lin
steps:
- name: Checkout Code
uses: actions/checkout@v3 # must checkout before we can use our own actions
uses: actions/checkout@v4 # must checkout before we can use our own actions
with:
submodules: 'recursive'
- name: Build
Expand All @@ -42,10 +44,12 @@ jobs:
#####################################
# MacOS with CMake/clang and sign/notarize in self-written script
build-mac:
runs-on: macos-latest
runs-on: macos-12
env:
platform: mac
steps:
- name: Checkout Code
uses: actions/checkout@v3 # must checkout before we can use our own actions
uses: actions/checkout@v4 # must checkout before we can use our own actions
with:
submodules: 'recursive'
- name: Build
Expand Down Expand Up @@ -86,9 +90,11 @@ jobs:
# Windows with MS Visual Studio
build-win:
runs-on: windows-2022
env:
platform: win
steps:
- name: Checkout Code
uses: actions/checkout@v3 # must checkout before we can use our own actions
uses: actions/checkout@v4 # must checkout before we can use our own actions
with:
submodules: 'recursive'
- name: Build
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ if(DEFINED ENV{platform})
elseif($ENV{platform} STREQUAL "mac-arm")
message (" Building cross-platform for mac/arm64")
set(CMAKE_OSX_ARCHITECTURES "arm64" CACHE STRING "Archs to build")
elseif($ENV{platform} STREQUAL "mac")
message (" Building cross-platform for both mac/x86_64 and mac/arm64")
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64" CACHE STRING "Archs to build")
endif()
else()
# No 'platform' defined could mean running from command line, assume we build universal image in one go via XCode
Expand Down
2 changes: 1 addition & 1 deletion lib/XPMP2
Submodule XPMP2 updated 81 files
+10 −10 .github/workflows/build.yml
+3 −0 CMakeLists.txt
+26 −3 Resources/XPMP2.example.prf
+2 −2 docs/html/2D_8h_source.html
+2 −2 docs/html/Aircraft_8h_source.html
+9 −0 docs/html/Network_8cpp.html
+51 −5 docs/html/Network_8h.html
+319 −307 docs/html/Network_8h_source.html
+0 −10 docs/html/Remote_8h.html
+149 −159 docs/html/Remote_8h_source.html
+1 −1 docs/html/Sound_8h_source.html
+3 −0 docs/html/Utilities_8cpp.html
+2 −2 docs/html/Utilities_8h.html
+23 −23 docs/html/Utilities_8h_source.html
+2 −2 docs/html/XPCAircraft_8h_source.html
+10 −0 docs/html/XPMP2_8h.html
+221 −205 docs/html/XPMP2_8h_source.html
+27 −27 docs/html/XPMPAircraft_8h_source.html
+7 −7 docs/html/XPMPMultiplayer_8h_source.html
+4 −4 docs/html/XPMPRemote_8h_source.html
+6 −6 docs/html/classXPMP2_1_1SocketNetworking-members.html
+95 −79 docs/html/classXPMP2_1_1SocketNetworking.html
+6 −8 docs/html/classXPMP2_1_1TCPConnection-members.html
+38 −84 docs/html/classXPMP2_1_1TCPConnection.html
+15 −15 docs/html/classXPMP2_1_1UDPMulticast-members.html
+39 −27 docs/html/classXPMP2_1_1UDPMulticast.html
+8 −9 docs/html/classXPMP2_1_1UDPReceiver-members.html
+18 −71 docs/html/classXPMP2_1_1UDPReceiver.html
+1 −1 docs/html/functions_c.html
+6 −0 docs/html/functions_e.html
+1 −1 docs/html/functions_func_c.html
+2 −2 docs/html/functions_func_g.html
+1 −1 docs/html/functions_func_j.html
+1 −1 docs/html/functions_func_l.html
+3 −0 docs/html/functions_func_p.html
+4 −1 docs/html/functions_func_r.html
+5 −1 docs/html/functions_func_s.html
+1 −1 docs/html/functions_func_t.html
+1 −1 docs/html/functions_func_~.html
+2 −2 docs/html/functions_g.html
+1 −1 docs/html/functions_j.html
+1 −1 docs/html/functions_l.html
+3 −0 docs/html/functions_p.html
+9 −3 docs/html/functions_r.html
+5 −1 docs/html/functions_s.html
+1 −1 docs/html/functions_t.html
+6 −0 docs/html/functions_vars_e.html
+5 −2 docs/html/functions_vars_r.html
+1 −1 docs/html/functions_~.html
+3 −0 docs/html/globals_i.html
+3 −0 docs/html/globals_s.html
+3 −0 docs/html/globals_type.html
+3 −0 docs/html/globals_vars.html
+2 −9 docs/html/menudata.js
+195 −73 docs/html/namespaceXPMP2.html
+3 −0 docs/html/namespacemembers.html
+3 −3 docs/html/namespacemembers_enum.html
+13 −9 docs/html/namespacemembers_eval.html
+12 −0 docs/html/namespacemembers_func.html
+0 −3 docs/html/namespacemembers_i.html
+6 −0 docs/html/namespacemembers_n.html
+3 −12 docs/html/namespacemembers_r.html
+9 −3 docs/html/namespacemembers_s.html
+3 −0 docs/html/namespacemembers_t.html
+1 −30 docs/html/namespacemembers_type.html
+0 −7 docs/html/namespacemembers_vars.html
+11 −7 docs/html/structXPMP2_1_1GlobVars-members.html
+100 −13 docs/html/structXPMP2_1_1GlobVars.html
+6 −5 docs/html/structXPMP2_1_1LocalIntfAddrTy-members.html
+32 −2 docs/html/structXPMP2_1_1LocalIntfAddrTy.html
+2 −0 docs/html/structXPMP2_1_1SockAddrTy-members.html
+61 −0 docs/html/structXPMP2_1_1SockAddrTy.html
+17 −2 src/2D.cpp
+12 −0 src/AIMultiplayer.cpp
+9 −0 src/Aircraft.cpp
+173 −53 src/Network.cpp
+54 −32 src/Network.h
+8 −6 src/Remote.cpp
+0 −7 src/Remote.h
+47 −29 src/Utilities.cpp
+18 −3 src/XPMP2.h

0 comments on commit a1f5c09

Please sign in to comment.