Skip to content

Commit

Permalink
[CI] no need for build anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 30, 2025
1 parent 8952578 commit 3214293
Showing 1 changed file with 0 additions and 199 deletions.
199 changes: 0 additions & 199 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,205 +5,7 @@ name: CI
on: [push, pull_request]

jobs:
windows64-build:
runs-on: windows-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
PLATFORM: windows64
ARCH: 64
MINGW_ARCH: x86_64
CYG_ROOT: D:\cygwin
steps:
- uses: actions/checkout@main
with:
submodules: recursive

- name: choco install nsis
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
max_attempts: 10
command: choco install --no-progress nsis.portable --version 3.09 -y

- name: choco install things
shell: pwsh
run: choco install --no-progress curl wget 7zip.portable -y

- name: Prepend Chocolatey path
shell: pwsh
run: Write-Host "::add-path::C:\ProgramData\chocolatey\bin"

- name: Install Neko from S3
shell: pwsh
run: |
Invoke-WebRequest https://build.haxe.org/builds/neko/$env:PLATFORM/neko_latest.zip -OutFile $env:RUNNER_TEMP/neko_latest.zip
Expand-Archive $env:RUNNER_TEMP/neko_latest.zip -DestinationPath $env:RUNNER_TEMP
$NEKOPATH = Get-ChildItem $env:RUNNER_TEMP/neko-*-*
echo "$NEKOPATH" >> $env:GITHUB_PATH
echo "NEKOPATH=$NEKOPATH" >> $env:GITHUB_ENV
- name: Print Neko version
run: neko -version 2>&1

- name: Setup ocaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4
opam-local-packages: |
haxe.opam
- name: Install dependencies
shell: pwsh
env:
MBEDTLS_VERSION: 2.16.3
run: |
curl.exe -fsSL -o "libmbedtls.tar.xz" --retry 3 `
https://github.com/Simn/mingw64-mbedtls/releases/download/${{ env.MBEDTLS_VERSION }}/mingw64-${{ env.MINGW_ARCH }}-mbedtls-${{ env.MBEDTLS_VERSION }}-1.tar.xz
${{ env.CYG_ROOT }}\bin\tar.exe -C ${{ env.CYG_ROOT }} -xvf libmbedtls.tar.xz
- name: Install OCaml libraries
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 10
retry_on: timeout
shell: pwsh
command: |
Set-PSDebug -Trace 1
# stop after any command returns an error
$PSNativeCommandUseErrorActionPreference = $true
$ErrorActionPreference = 'Stop'
# see: https://github.com/aantron/luv/issues/162
$env:PATH="${env:CYG_ROOT}\bin;${env:CYG_ROOT}\usr\x86_64-w64-mingw32\bin;${env:PATH}"
opam install haxe --deps-only
opam list
- name: Set ADD_REVISION=1 for non-release
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
shell: pwsh
run: echo "ADD_REVISION=1" >> $Env:GITHUB_ENV

- name: Build Haxe
shell: pwsh
run: |
Set-PSDebug -Trace 1
# stop after any command returns an error
$PSNativeCommandUseErrorActionPreference = $true
$ErrorActionPreference = 'Stop'
opam exec -- make -s -f Makefile.win -j"$env:NUMBER_OF_PROCESSORS" haxe
opam exec -- make -s -f Makefile.win haxelib
opam exec -- make -f Makefile.win echo_package_files package_bin package_installer_win package_choco
cygcheck ./haxe.exe
cygcheck ./haxelib.exe
ls ./out
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: win${{env.ARCH}}Binaries
path: out

windows64-build-a:
runs-on: windows-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
PLATFORM: windows64
ARCH: 64
MINGW_ARCH: x86_64
CYG_ROOT: D:\cygwin
steps:
- uses: actions/checkout@main
with:
submodules: recursive

- name: choco install nsis
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
max_attempts: 10
command: choco install --no-progress nsis.portable --version 3.09 -y

- name: choco install things
shell: pwsh
run: choco install --no-progress curl wget 7zip.portable -y

- name: Prepend Chocolatey path
shell: pwsh
run: Write-Host "::add-path::C:\ProgramData\chocolatey\bin"

- name: Install Neko from S3
shell: pwsh
run: |
Invoke-WebRequest https://build.haxe.org/builds/neko/$env:PLATFORM/neko_latest.zip -OutFile $env:RUNNER_TEMP/neko_latest.zip
Expand-Archive $env:RUNNER_TEMP/neko_latest.zip -DestinationPath $env:RUNNER_TEMP
$NEKOPATH = Get-ChildItem $env:RUNNER_TEMP/neko-*-*
echo "$NEKOPATH" >> $env:GITHUB_PATH
echo "NEKOPATH=$NEKOPATH" >> $env:GITHUB_ENV
- name: Print Neko version
run: neko -version 2>&1

- name: Setup ocaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4
opam-local-packages: |
haxe.opam
- name: Install dependencies
shell: pwsh
env:
MBEDTLS_VERSION: 2.16.3
run: |
curl.exe -fsSL -o "libmbedtls.tar.xz" --retry 3 `
https://github.com/Simn/mingw64-mbedtls/releases/download/${{ env.MBEDTLS_VERSION }}/mingw64-${{ env.MINGW_ARCH }}-mbedtls-${{ env.MBEDTLS_VERSION }}-1.tar.xz
${{ env.CYG_ROOT }}\bin\tar.exe -C ${{ env.CYG_ROOT }} -xvf libmbedtls.tar.xz
- name: Install OCaml libraries
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 10
retry_on: timeout
shell: pwsh
command: |
Set-PSDebug -Trace 1
# stop after any command returns an error
$PSNativeCommandUseErrorActionPreference = $true
$ErrorActionPreference = 'Stop'
# see: https://github.com/aantron/luv/issues/162
$env:PATH="${env:CYG_ROOT}\bin;${env:CYG_ROOT}\usr\x86_64-w64-mingw32\bin;${env:PATH}"
opam install haxe --deps-only
opam list
- name: Set ADD_REVISION=1 for non-release
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
shell: pwsh
run: echo "ADD_REVISION=1" >> $Env:GITHUB_ENV

- name: Build Haxe
shell: pwsh
run: |
Set-PSDebug -Trace 1
# stop after any command returns an error
$PSNativeCommandUseErrorActionPreference = $true
$ErrorActionPreference = 'Stop'
opam exec -- make -s -f Makefile.win -j"$env:NUMBER_OF_PROCESSORS" haxe
opam exec -- make -s -f Makefile.win haxelib
opam exec -- make -f Makefile.win echo_package_files package_bin package_installer_win package_choco
cygcheck ./haxe.exe
cygcheck ./haxelib.exe
ls ./out
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: win${{env.ARCH}}Binaries2
path: out


windows64-test:
needs: windows64-build
runs-on: windows-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down Expand Up @@ -304,7 +106,6 @@ jobs:


windows64-test-a:
needs: windows64-build-a
runs-on: windows-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Expand Down

0 comments on commit 3214293

Please sign in to comment.