Advertisement
dominus

Untitled

Aug 27th, 2022
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. name: ci-macos
  2.  
  3. on:
  4. push:
  5. paths:
  6. - "**"
  7. - "!android"
  8. - "!docs/**"
  9. - "docs/Makefile.am"
  10. - "!msvcstuff/**"
  11. - "!win32/**"
  12. - "!AUTHORS"
  13. - "!ChangeLog"
  14. - "!COPYING"
  15. - "!FAQ"
  16. - "!INSTALL"
  17. - "!NEWS"
  18. - "!**README**"
  19. - "!**.ico"
  20. - "!**.md"
  21. - "!**.png"
  22. - "!**.txt"
  23. - "!.clang*"
  24. - "!.gitignore"
  25. - "!.gitattributes"
  26. - "!.github/workflows/*"
  27. - ".github/workflows/ci-ios.yml"
  28. pull_request:
  29. paths:
  30. - "**"
  31. - "!android"
  32. - "!docs/**"
  33. - "docs/Makefile.am"
  34. - "!msvcstuff/**"
  35. - "!win32/**"
  36. - "!AUTHORS"
  37. - "!ChangeLog"
  38. - "!COPYING"
  39. - "!FAQ"
  40. - "!INSTALL"
  41. - "!NEWS"
  42. - "!**README**"
  43. - "!**.ico"
  44. - "!**.md"
  45. - "!**.png"
  46. - "!**.txt"
  47. - "!.clang*"
  48. - "!.gitignore"
  49. - "!.gitattributes"
  50. - "!.github/workflows/*"
  51. - ".github/workflows/ci-ios.yml"
  52.  
  53. jobs:
  54. notify:
  55. name: Exult-CI (IRC & Discord notification)
  56. runs-on: ubuntu-latest
  57. needs:
  58. - ci-macos
  59. if: ${{ always() && (github.repository_owner == 'exult' && github.event_name != 'pull_request') }}
  60. steps:
  61. - name: IRC success notification (ircs://irc.libera.chat:6697/#exult)
  62. uses: Gottox/irc-message-action@v2
  63. if: needs.ci-ios.result == 'success'
  64. with:
  65. server: irc.libera.chat
  66. port: 6697
  67. channel: "#exult"
  68. nickname: github-actions
  69. tls: true
  70. message: "\x0313exult\x03/\x0306${{ github.ref }}\x03 \x0314${{ github.sha }}\x03 https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} The iOS build \x033succeeded\x03."
  71. - name: IRC failure notification (ircs://irc.libera.chat:6697/#exult)
  72. uses: Gottox/irc-message-action@v2
  73. if: needs.ci-ios.result != 'success'
  74. with:
  75. server: irc.libera.chat
  76. port: 6697
  77. channel: "#exult"
  78. nickname: github-actions
  79. tls: true
  80. message: "\x0313exult\x03/\x0306${{ github.ref }}\x03 \x0314${{ github.sha }}\x03 https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} The iOS build \x034failed\x03."
  81. - name: Discord success notification
  82. uses: rjstone/discord-webhook-notify@v1
  83. if: needs.ci-ios.result == 'success'
  84. with:
  85. severity: info
  86. username: github-actions
  87. webhookURL: ${{ secrets.DISCORD_WEBHOOK }}
  88. text: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
  89. details: 'The iOS build succeeded.'
  90. - name: Discord failure notification
  91. uses: rjstone/discord-webhook-notify@v1
  92. if: needs.ci-ios.result != 'success'
  93. with:
  94. severity: error
  95. username: github-actions
  96. webhookURL: ${{ secrets.DISCORD_WEBHOOK }}
  97. text: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
  98. details: 'The iOS build failed.'
  99. ci-ios:
  100. runs-on: macos-latest
  101. steps:
  102. - name: Checkout code
  103. uses: actions/checkout@master
  104. - name: clone xiph/ogg
  105. uses: actions/checkout@master
  106. with:
  107. repository: 'xiph/ogg'
  108. ref: 'v1.3.5'
  109. path: './ios/libogg'
  110. - name: clone xiph/vorbis
  111. uses: actions/checkout@master
  112. with:
  113. repository: 'xiph/vorbis'
  114. ref: 'v1.3.7'
  115. path: './ios/libvorbis'
  116. - name: clone libsdl-org/sdl
  117. uses: actions/checkout@master
  118. with:
  119. repository: 'libsdl-org/sdl'
  120. ref: 'release-2.24.0'
  121. path: './ios/SDL2'
  122. - name: clone munt/munt
  123. uses: actions/checkout@master
  124. with:
  125. repository: 'munt/munt'
  126. ref: 'munt_2_7_0'
  127. path: './ios/libmt32emu'
  128. - name: Build
  129. run: |
  130. xcodebuild build -scheme Exult -project ./ios/Exult.xcodeproj CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
  131.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement