main.yml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. # TODO: support skip ci (https://github.community/t/github-actions-does-not-respect-skip-ci/17325/8)
  2. name: CI
  3. on: [push, pull_request]
  4. jobs:
  5. windows64-build:
  6. runs-on: windows-latest
  7. env:
  8. ACTIONS_ALLOW_UNSECURE_COMMANDS: true
  9. PLATFORM: windows64
  10. ARCH: 64
  11. MINGW_ARCH: x86_64
  12. CYG_ROOT: D:\cygwin
  13. steps:
  14. - uses: actions/checkout@main
  15. with:
  16. submodules: recursive
  17. @import install-nsis.yml
  18. @import install-neko-windows.yml
  19. @import install-ocaml-windows.yml
  20. @import install-ocaml-libs-windows.yml
  21. @import build-windows.yml
  22. linux-build:
  23. runs-on: ubuntu-20.04
  24. env:
  25. PLATFORM: linux64
  26. OPAMYES: 1
  27. strategy:
  28. fail-fast: false
  29. matrix:
  30. ocaml: ["4.08.1", "5.0.0"]
  31. steps:
  32. - uses: actions/checkout@main
  33. with:
  34. submodules: recursive
  35. - name: Cache opam
  36. id: cache-opam
  37. uses: actions/cache@v4
  38. with:
  39. path: ~/.opam/
  40. key: ${{ runner.os }}-${{ matrix.ocaml }}-${{ hashFiles('./haxe.opam', './libs/') }}
  41. @import install-neko-unix.yml
  42. - name: Install dependencies
  43. run: |
  44. set -ex
  45. sudo add-apt-repository ppa:avsm/ppa -y # provides OPAM 2
  46. sudo add-apt-repository ppa:haxe/ocaml -y # provides newer version of mbedtls
  47. sudo apt-get update -qqy
  48. sudo apt-get install -qqy ocaml-nox opam libpcre2-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev ninja-build
  49. - name: Install OCaml libraries
  50. if: steps.cache-opam.outputs.cache-hit != 'true'
  51. run: |
  52. set -ex
  53. opam init # --disable-sandboxing
  54. opam update
  55. opam switch create ${{ matrix.ocaml }}
  56. opam pin add haxe . --no-action
  57. opam install haxe --deps-only --assume-depexts
  58. opam list
  59. ocamlopt -v
  60. - name: Set ADD_REVISION=1 for non-release
  61. if: ${{ !startsWith(github.ref, 'refs/tags/') }}
  62. run: echo "ADD_REVISION=1" >> $GITHUB_ENV
  63. - name: Build Haxe
  64. run: |
  65. set -ex
  66. eval $(opam env)
  67. opam config exec -- make -s -j`nproc` STATICLINK=1 haxe
  68. opam config exec -- make -s haxelib
  69. make -s package_unix
  70. ls -l out
  71. ldd -v ./haxe
  72. ldd -v ./haxelib
  73. # https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
  74. - name: Extract branch name
  75. id: extract_branch
  76. shell: bash
  77. run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
  78. - name: Build xmldoc
  79. if: matrix.ocaml == '4.08.1'
  80. run: |
  81. set -ex
  82. make -s xmldoc
  83. cat >extra/doc/info.json <<EOL
  84. {
  85. "commit": "$GITHUB_SHA",
  86. "branch": "${{ steps.extract_branch.outputs.branch }}"
  87. }
  88. EOL
  89. - name: Upload artifact
  90. uses: actions/upload-artifact@v4
  91. with:
  92. name: linuxBinaries${{ (matrix.ocaml == '5.0.0' && '_ocaml5') || '' }}
  93. path: out
  94. - name: Upload xmldoc artifact
  95. uses: actions/upload-artifact@v4
  96. if: matrix.ocaml == '4.08.1'
  97. with:
  98. name: xmldoc
  99. path: extra/doc
  100. linux-test:
  101. needs: linux-build
  102. runs-on: ubuntu-20.04
  103. env:
  104. PLATFORM: linux64
  105. TEST: ${{matrix.target}}
  106. HXCPP_COMPILE_CACHE: ~/hxcache
  107. HAXE_STD_PATH: /usr/local/share/haxe/std
  108. strategy:
  109. fail-fast: false
  110. matrix:
  111. ocaml: ["4.08.1", "5.0.0"]
  112. target: [macro, js, hl, cpp, jvm, php, python, lua, flash, neko]
  113. include:
  114. - target: hl
  115. APT_PACKAGES: cmake ninja-build libturbojpeg-dev
  116. - target: cpp
  117. APT_PACKAGES: gcc-multilib g++-multilib
  118. - target: lua
  119. APT_PACKAGES: ncurses-dev
  120. - target: flash
  121. APT_PACKAGES: libglib2.0-0 libgtk2.0-0 libfreetype6 xvfb
  122. steps:
  123. - uses: actions/checkout@main
  124. with:
  125. submodules: recursive
  126. - uses: actions/download-artifact@v4
  127. with:
  128. name: linuxBinaries${{ (matrix.ocaml == '5.0.0' && '_ocaml5') || '' }}
  129. path: linuxBinaries
  130. @import install-neko-unix.yml
  131. - name: Setup Haxe
  132. run: |
  133. sudo apt install -qqy libmbedtls-dev
  134. set -ex
  135. tar -xf linuxBinaries/*_bin.tar.gz -C linuxBinaries --strip-components=1
  136. sudo mkdir -p /usr/local/bin/
  137. sudo mkdir -p /usr/local/share/haxe/
  138. sudo ln -s `pwd`/linuxBinaries/haxe /usr/local/bin/haxe
  139. sudo ln -s `pwd`/linuxBinaries/haxelib /usr/local/bin/haxelib
  140. sudo ln -s `pwd`/linuxBinaries/std /usr/local/share/haxe/std
  141. - name: Print Haxe version
  142. run: haxe -version
  143. - name: Setup haxelib
  144. run: |
  145. set -ex
  146. mkdir ~/haxelib
  147. haxelib setup ~/haxelib
  148. - name: Install apt packages
  149. if: matrix.APT_PACKAGES
  150. run: |
  151. set -ex
  152. sudo apt update -qqy
  153. sudo apt install -qqy ${{matrix.APT_PACKAGES}}
  154. - name: Flash setup
  155. if: matrix.target == 'flash'
  156. run: export DISPLAY=:99.0
  157. - name: Test
  158. run: haxe RunCi.hxml
  159. working-directory: ${{github.workspace}}/tests
  160. test-docgen:
  161. needs: linux-build
  162. runs-on: ubuntu-20.04
  163. env:
  164. PLATFORM: linux64
  165. HXCPP_COMPILE_CACHE: ~/hxcache
  166. steps:
  167. - uses: actions/checkout@main
  168. with:
  169. submodules: recursive
  170. - uses: actions/download-artifact@v4
  171. with:
  172. name: linuxBinaries
  173. path: linuxBinaries
  174. - name: Download xmldoc artifact
  175. uses: actions/download-artifact@v4
  176. with:
  177. name: xmldoc
  178. path: xmldoc
  179. @import install-neko-unix.yml
  180. - name: Setup Haxe
  181. run: |
  182. sudo apt install -qqy libmbedtls-dev
  183. set -ex
  184. tar -xf linuxBinaries/*_bin.tar.gz -C linuxBinaries --strip-components=1
  185. sudo mkdir -p /usr/local/bin/
  186. sudo mkdir -p /usr/local/share/haxe/
  187. sudo ln -s `pwd`/linuxBinaries/haxe /usr/local/bin/haxe
  188. sudo ln -s `pwd`/linuxBinaries/haxelib /usr/local/bin/haxelib
  189. sudo ln -s `pwd`/linuxBinaries/std /usr/local/share/haxe/std
  190. - name: Print Haxe version
  191. run: haxe -version
  192. - name: Setup haxelib
  193. run: |
  194. set -ex
  195. mkdir ~/haxelib
  196. haxelib setup ~/haxelib
  197. - name: Test documentation generation
  198. run: |
  199. set -ex
  200. haxelib git dox https://github.com/HaxeFoundation/dox.git
  201. haxelib git hxtemplo https://github.com/Simn/hxtemplo.git
  202. haxelib git hxargs https://github.com/Simn/hxargs.git
  203. haxelib git markdown https://github.com/dpeek/haxe-markdown.git
  204. haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp.git
  205. cd $(haxelib libpath hxcpp)/tools/hxcpp
  206. haxe compile.hxml
  207. cd -
  208. haxe dox.hxml
  209. mkdir resources
  210. cp ../../src-json/* resources
  211. cpp/Dox -i ../../xmldoc -ex microsoft -ex javax -theme $(haxelib libpath dox)/themes/default
  212. working-directory: ${{github.workspace}}/tests/docgen
  213. linux-arm64-build:
  214. runs-on: ubuntu-22.04-arm
  215. env:
  216. PLATFORM: linux-arm64
  217. OPAMYES: 1
  218. steps:
  219. - uses: actions/checkout@main
  220. with:
  221. submodules: recursive
  222. - name: Cache opam
  223. id: cache-opam
  224. uses: actions/cache@v4
  225. with:
  226. path: ~/.opam/
  227. key: arm-${{ runner.os }}-${{ hashFiles('./haxe.opam', './libs/') }}
  228. @import install-neko-unix.yml
  229. - name: Install dependencies
  230. run: |
  231. set -ex
  232. sudo apt-get update -qqy
  233. sudo apt-get install -qqy ocaml-nox opam libpcre2-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev ninja-build
  234. - name: Install OCaml libraries
  235. if: steps.cache-opam.outputs.cache-hit != 'true'
  236. run: |
  237. set -ex
  238. opam init
  239. opam pin add haxe . --no-action
  240. opam install haxe --deps-only --assume-depexts
  241. opam list
  242. ocamlopt -v
  243. - name: Set ADD_REVISION=1 for non-release
  244. if: ${{ !startsWith(github.ref, 'refs/tags/') }}
  245. run: echo "ADD_REVISION=1" >> $GITHUB_ENV
  246. - name: Build Haxe
  247. run: |
  248. set -ex
  249. eval $(opam env)
  250. opam config exec -- make -s -j`nproc` STATICLINK=1 haxe
  251. opam config exec -- make -s haxelib
  252. make -s package_unix
  253. ls -l out
  254. ldd -v ./haxe
  255. ldd -v ./haxelib
  256. # https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
  257. - name: Extract branch name
  258. id: extract_branch
  259. shell: bash
  260. run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
  261. - name: Upload artifact
  262. uses: actions/upload-artifact@v4
  263. with:
  264. name: linuxArm64Binaries
  265. path: out
  266. linux-arm64-test:
  267. needs: linux-arm64-build
  268. runs-on: ubuntu-22.04-arm
  269. env:
  270. PLATFORM: linux-arm64
  271. TEST: ${{matrix.target}}
  272. HXCPP_COMPILE_CACHE: ~/hxcache
  273. HAXE_STD_PATH: /usr/local/share/haxe/std
  274. strategy:
  275. fail-fast: false
  276. matrix:
  277. target: [macro, js, cpp, jvm, php, python, lua, neko]
  278. include:
  279. - target: lua
  280. APT_PACKAGES: ncurses-dev
  281. steps:
  282. - uses: actions/checkout@main
  283. with:
  284. submodules: recursive
  285. - uses: actions/download-artifact@v4
  286. with:
  287. name: linuxArm64Binaries
  288. path: linuxBinaries
  289. @import install-neko-unix.yml
  290. - name: Setup Haxe
  291. run: |
  292. sudo apt install -qqy libmbedtls-dev
  293. set -ex
  294. tar -xf linuxBinaries/*_bin.tar.gz -C linuxBinaries --strip-components=1
  295. sudo mkdir -p /usr/local/bin/
  296. sudo mkdir -p /usr/local/share/haxe/
  297. sudo ln -s `pwd`/linuxBinaries/haxe /usr/local/bin/haxe
  298. sudo ln -s `pwd`/linuxBinaries/haxelib /usr/local/bin/haxelib
  299. sudo ln -s `pwd`/linuxBinaries/std /usr/local/share/haxe/std
  300. - name: Print Haxe version
  301. run: haxe -version
  302. - name: Setup haxelib
  303. run: |
  304. set -ex
  305. mkdir ~/haxelib
  306. haxelib setup ~/haxelib
  307. - name: Install apt packages
  308. if: matrix.APT_PACKAGES
  309. run: |
  310. set -ex
  311. sudo apt update -qqy
  312. sudo apt install -qqy ${{matrix.APT_PACKAGES}}
  313. - name: Test
  314. run: haxe RunCi.hxml
  315. working-directory: ${{github.workspace}}/tests
  316. mac-build:
  317. strategy:
  318. fail-fast: false
  319. matrix:
  320. os: [macos-14, macos-13]
  321. runs-on: ${{ matrix.os }}
  322. env:
  323. PLATFORM: mac${{ matrix.os == 'macos-14' && '-arm64' || '' }}
  324. OPAMYES: 1
  325. MACOSX_DEPLOYMENT_TARGET: 10.13
  326. OCAML_VERSION: 5.1.1
  327. steps:
  328. - uses: actions/checkout@main
  329. with:
  330. submodules: recursive
  331. - name: Cache opam
  332. id: cache-opam
  333. uses: actions/cache@v4
  334. with:
  335. path: ~/.opam/
  336. key: ${{ matrix.os }}-${{ hashFiles('./haxe.opam', './libs/') }}-1
  337. @import install-neko-unix.yml
  338. @import build-mac.yml
  339. windows64-test:
  340. needs: windows64-build
  341. runs-on: windows-latest
  342. env:
  343. ACTIONS_ALLOW_UNSECURE_COMMANDS: true
  344. PLATFORM: windows64
  345. TEST: ${{matrix.target}}
  346. HXCPP_COMPILE_CACHE: ~/hxcache
  347. ARCH: 64
  348. strategy:
  349. fail-fast: false
  350. matrix:
  351. # TODO enable lua after https://github.com/HaxeFoundation/haxe/issues/10919
  352. target: [macro, js, hl, cpp, jvm, php, python, flash, neko]
  353. steps:
  354. - uses: actions/checkout@main
  355. with:
  356. submodules: recursive
  357. - uses: actions/download-artifact@v4
  358. with:
  359. name: win${{env.ARCH}}Binaries
  360. path: win${{env.ARCH}}Binaries
  361. @import install-neko-windows.yml
  362. @import test-windows.yml
  363. mac-build-universal:
  364. needs: mac-build
  365. runs-on: macos-latest
  366. steps:
  367. - name: Checkout the repository
  368. uses: actions/checkout@main
  369. - uses: actions/download-artifact@v4
  370. with:
  371. name: macX64Binaries
  372. path: macX64Binaries
  373. - uses: actions/download-artifact@v4
  374. with:
  375. name: macArmBinaries
  376. path: macArmBinaries
  377. - name: Make universal binary
  378. run: |
  379. set -ex
  380. tar -xf macX64Binaries/*_bin.tar.gz -C macX64Binaries --strip-components=1
  381. tar -xf macArmBinaries/*_bin.tar.gz -C macArmBinaries --strip-components=1
  382. lipo -create -output haxe macX64Binaries/haxe macArmBinaries/haxe
  383. lipo -create -output haxelib macX64Binaries/haxelib macArmBinaries/haxelib
  384. make -s package_unix package_installer_mac PACKAGE_INSTALLER_MAC_ARCH=universal
  385. ls -l out
  386. otool -L ./haxe
  387. otool -L ./haxelib
  388. - name: Upload artifact (universal)
  389. uses: actions/upload-artifact@v4
  390. with:
  391. name: macBinaries
  392. path: out
  393. mac-test:
  394. needs: mac-build-universal
  395. runs-on: macos-13
  396. env:
  397. PLATFORM: mac
  398. TEST: ${{matrix.target}}
  399. HXCPP_COMPILE_CACHE: ~/hxcache
  400. HAXE_STD_PATH: /usr/local/share/haxe/std
  401. strategy:
  402. fail-fast: false
  403. matrix:
  404. target: [macro, js, hl, cpp, jvm, php, python, lua, flash, neko]
  405. include:
  406. - target: hl
  407. BREW_PACKAGES: ninja
  408. steps:
  409. - uses: actions/checkout@main
  410. with:
  411. submodules: recursive
  412. - uses: actions/download-artifact@v4
  413. with:
  414. name: macBinaries
  415. path: macBinaries
  416. @import install-neko-unix.yml
  417. @import test-mac.yml
  418. deploy:
  419. if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request'
  420. needs: [linux-test, linux-arm64-test, mac-test, windows64-test]
  421. runs-on: ubuntu-20.04
  422. steps:
  423. # this is only needed for to get `COMMIT_DATE`...
  424. # maybe https://github.community/t/expose-commit-timestamp-in-the-github-context-data/16460/3
  425. # would be faster
  426. - name: Checkout the repository
  427. uses: actions/checkout@main
  428. - name: Download build artifacts
  429. uses: actions/download-artifact@v4
  430. - name: Install awscli
  431. run: |
  432. set -ex
  433. sudo apt-get update -qqy
  434. sudo apt-get install -qqy awscli
  435. # https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
  436. - name: Extract branch name
  437. id: extract_branch
  438. shell: bash
  439. run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
  440. - name: Upload binaries
  441. shell: bash
  442. env:
  443. AWS_ACCESS_KEY_ID: ${{ secrets.HXBUILDS_AWS_ACCESS_KEY_ID }}
  444. AWS_SECRET_ACCESS_KEY: ${{ secrets.HXBUILDS_AWS_SECRET_ACCESS_KEY }}
  445. HXBUILDS_S3ADDR: ${{ secrets.HXBUILDS_S3ADDR }}
  446. AWS_EC2_METADATA_DISABLED: true
  447. run: |
  448. set -ex
  449. COMMIT_HASH_SHORT=${GITHUB_SHA:0:7}
  450. COMMIT_DATE=`TZ=UTC git show --quiet --date='format-local:%Y-%m-%d' --format="%cd"`
  451. FILE_NAME=haxe_${COMMIT_DATE}_${{ steps.extract_branch.outputs.branch }}_${COMMIT_HASH_SHORT}
  452. aws s3 cp linuxBinaries/*_bin.tar.gz ${HXBUILDS_S3ADDR}/haxe/linux64/${FILE_NAME}.tar.gz
  453. aws s3 cp linuxArm64Binaries/*_bin.tar.gz ${HXBUILDS_S3ADDR}/haxe/linux-arm64/${FILE_NAME}.tar.gz
  454. aws s3 cp macBinaries/*_bin.tar.gz ${HXBUILDS_S3ADDR}/haxe/mac/${FILE_NAME}.tar.gz
  455. aws s3 cp macBinaries/*_installer.tar.gz ${HXBUILDS_S3ADDR}/haxe/mac-installer/${FILE_NAME}.tar.gz
  456. aws s3 cp win64Binaries/*_bin.zip ${HXBUILDS_S3ADDR}/haxe/windows64/${FILE_NAME}.zip
  457. aws s3 cp win64Binaries/*_installer.zip ${HXBUILDS_S3ADDR}/haxe/windows64-installer/${FILE_NAME}.zip
  458. aws s3 cp win64Binaries/*.nupkg ${HXBUILDS_S3ADDR}/haxe/windows64-choco/
  459. - name: Update "latest"
  460. if: github.ref == 'refs/heads/development'
  461. shell: bash
  462. env:
  463. AWS_ACCESS_KEY_ID: ${{ secrets.HXBUILDS_AWS_ACCESS_KEY_ID }}
  464. AWS_SECRET_ACCESS_KEY: ${{ secrets.HXBUILDS_AWS_SECRET_ACCESS_KEY }}
  465. HXBUILDS_S3ADDR: ${{ secrets.HXBUILDS_S3ADDR }}
  466. AWS_EC2_METADATA_DISABLED: true
  467. run: |
  468. set -ex
  469. aws s3 cp linuxBinaries/*_bin.tar.gz ${HXBUILDS_S3ADDR}/haxe/linux64/haxe_latest.tar.gz
  470. aws s3 cp linuxArm64Binaries/*_bin.tar.gz ${HXBUILDS_S3ADDR}/haxe/linux-arm64/haxe_latest.tar.gz
  471. aws s3 cp macBinaries/*_bin.tar.gz ${HXBUILDS_S3ADDR}/haxe/mac/haxe_latest.tar.gz
  472. aws s3 cp macBinaries/*_installer.tar.gz ${HXBUILDS_S3ADDR}/haxe/mac-installer/haxe_latest.tar.gz
  473. aws s3 cp win64Binaries/*_bin.zip ${HXBUILDS_S3ADDR}/haxe/windows64/haxe_latest.zip
  474. aws s3 cp win64Binaries/*_installer.zip ${HXBUILDS_S3ADDR}/haxe/windows64-installer/haxe_latest.zip
  475. # Chocolatey packages have to be named with version number,
  476. # so let's use web redirection to keep the original file name.
  477. [[ "$HXBUILDS_S3ADDR" =~ s3://([^/]+)(.*) ]] && HXBUILDS_S3BUCKET="${BASH_REMATCH[1]}" && HXBUILDS_S3PATH="${BASH_REMATCH[2]}"
  478. [[ `echo win64Binaries/*.nupkg` =~ win64Binaries/(.+) ]] && FILE_NAME="${BASH_REMATCH[1]}"
  479. aws s3 cp ${HXBUILDS_S3ADDR}/haxe/windows64-choco/${FILE_NAME} ${HXBUILDS_S3ADDR}/haxe/windows64-choco/haxe_latest.nupkg --acl public-read --website-redirect "${HXBUILDS_S3PATH}/haxe/windows64-choco/${FILE_NAME}"
  480. deploy_apidoc:
  481. if: success() && github.repository_owner == 'HaxeFoundation' && github.event_name != 'pull_request'
  482. needs: [linux-test, linux-arm64-test, mac-test, windows64-test]
  483. runs-on: ubuntu-20.04
  484. steps:
  485. - name: Install dependencies
  486. run: |
  487. set -ex
  488. sudo apt-get install -qqy libc6
  489. - name: Download Haxe
  490. uses: actions/download-artifact@v4
  491. with:
  492. name: linuxBinaries
  493. path: linuxBinaries
  494. - name: Setup Haxe
  495. run: |
  496. set -ex
  497. tar -xf linuxBinaries/*_bin.tar.gz -C linuxBinaries --strip-components=1
  498. sudo mkdir -p /usr/local/bin/
  499. sudo mkdir -p /usr/local/share/haxe/
  500. sudo ln -s `pwd`/linuxBinaries/haxe /usr/local/bin/haxe
  501. sudo ln -s `pwd`/linuxBinaries/haxelib /usr/local/bin/haxelib
  502. sudo ln -s `pwd`/linuxBinaries/std /usr/local/share/haxe/std
  503. - name: Download xmldoc artifact
  504. uses: actions/download-artifact@v4
  505. with:
  506. name: xmldoc
  507. path: xmldoc
  508. - name: Deploy to api.haxe.org
  509. env:
  510. GHP_EMAIL: [email protected]
  511. GHP_USERNAME: Haxe CI Bot
  512. GHP_REMOTE: ${{ secrets.GHP_REMOTE }}
  513. run: |
  514. set -ex
  515. LOCAL="`pwd`/extra/api.haxe.org"
  516. git clone "${GHP_REMOTE}" "${LOCAL}"
  517. haxe --cwd "${LOCAL}" --run ImportXml "`pwd`/xmldoc"