diff --git a/.github/workflows/timezone-update.yml b/.github/workflows/timezone-update.yml new file mode 100644 index 000000000..05ceda9f8 --- /dev/null +++ b/.github/workflows/timezone-update.yml @@ -0,0 +1,59 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: timezone-update + +on: + workflow_dispatch: + branches: [ master, stable* ] + schedule: + - cron: "0 5 11 * *" + +jobs: + build: + runs-on: windows-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Configure CMake + run: cmake -G"Visual Studio 17 2022" -Bbuild -Swinpr\libwinpr\timezone\utils + - name: Build & Install CMake + run: cmake --build build --config Release + - name: Update timezones + run: build\Release\tzextract.exe winpr\libwinpr\timezone + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.PAT }} + commit-message: Update timezone definitions + committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> + signoff: false + branch: timezone-patches + delete-branch: true + title: '[timezones] Update definitions' + body: | + Timezone update + - Auto-generated by [create-pull-request][1] + + [1]: https://github.com/peter-evans/create-pull-request + labels: | + report + automated pr + assignees: akallabeth + reviewers: akallabeth + team-reviewers: | + developers + qa-team + milestone: 1 + draft: false diff --git a/winpr/libwinpr/timezone/utils/CMakeLists.txt b/winpr/libwinpr/timezone/utils/CMakeLists.txt index fad24ef68..cefda40e9 100644 --- a/winpr/libwinpr/timezone/utils/CMakeLists.txt +++ b/winpr/libwinpr/timezone/utils/CMakeLists.txt @@ -25,3 +25,9 @@ set_property(TARGET ${PROJECT_NAME} PROPERTY VS_DOTNET_REFERENCES "System.Threading" "System.Threading.Tasks" ) +install(TARGETS ${PROJECT_NAME} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBRARY_DIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBRARY_DIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINARY_DIR} + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDE_DIR} +)