Răsfoiți Sursa

[ci] remove azure pipelines, let's improve on gh-actions from this

Dan Korostelev 4 ani în urmă
părinte
comite
76a5a7fe6e

+ 0 - 191
azure-pipelines.yml

@@ -1,191 +0,0 @@
-variables:
-  - group: variables-haxe
-  - name: AZURE_PIPELINES_REPO_URL
-    value: $(Build.Repository.Uri)
-  - name: AZURE_PIPELINES_BRANCH
-    value: $(Build.SourceBranchName)
-
-trigger:
-  branches:
-    include:
-      - '*'
-  tags:
-    include:
-      - '*'
-
-stages:
-  - stage: StageTest
-    jobs:
-      - template: extra/azure-pipelines/build-linux.yml
-        parameters:
-          name: BuildLinux
-
-      - template: extra/azure-pipelines/build-mac.yml
-        parameters:
-          name: BuildMac
-
-      - template: extra/azure-pipelines/build-windows.yml
-        parameters:
-          name: BuildWin64
-          arch: '64'
-
-      - template: extra/azure-pipelines/build-windows.yml
-        parameters:
-          name: BuildWin32
-          arch: '32'
-
-      - job: TestLinux
-        dependsOn: BuildLinux
-        pool:
-          vmImage: 'ubuntu-16.04'
-        strategy:
-          matrix:
-            macro:
-              TEST: macro
-            neko:
-              TEST: neko
-            hl:
-              TEST: hl
-              APT_PACKAGES: cmake ninja-build
-            cpp:
-              TEST: cpp
-              HXCPP_COMPILE_CACHE: ~/hxcache
-              APT_PACKAGES: gcc-multilib g++-multilib
-            java:
-              TEST: java,jvm
-            cs:
-              TEST: cs
-            js:
-              TEST: js
-              SAUCE_TUNNEL_ID: $(Agent.JobName)
-              SAUCE_BUILD: $(Build.BuildNumber)
-            php:
-              TEST: php
-            flash:
-              TEST: flash9
-              APT_PACKAGES: libglib2.0 libfreetype6 xvfb
-              DISPLAY: ':99.0'
-              AUDIODEV: 'null'
-            python:
-              TEST: python
-            lua:
-              TEST: lua
-              APT_PACKAGES: ncurses-dev
-        steps:
-          - checkout: self
-            fetchDepth: 20
-          - template: extra/azure-pipelines/install-neko-snapshot.yaml
-            parameters:
-              platform: linux64
-          - task: DownloadPipelineArtifact@0
-            inputs:
-              artifactName: 'linuxBinaries'
-              targetPath: linuxBinaries
-          - script: |
-              set -ex
-              tar -xf linuxBinaries/*_bin.tar.gz -C linuxBinaries --strip-components=1
-              sudo mkdir -p /usr/local/bin/
-              sudo mkdir -p /usr/local/share/haxe/
-              sudo ln -s `pwd`/linuxBinaries/haxe /usr/local/bin/haxe
-              sudo ln -s `pwd`/linuxBinaries/haxelib /usr/local/bin/haxelib
-              sudo ln -s `pwd`/linuxBinaries/std /usr/local/share/haxe/std
-            displayName: Setup Haxe
-          - script: haxe -version
-            displayName: Print Haxe version
-          - script: |
-              set -ex
-              mkdir ~/haxelib
-              haxelib setup ~/haxelib
-            displayName: Setup haxelib
-          - script: |
-              set -ex
-              sudo apt update -qqy
-              sudo apt install -qqy $APT_PACKAGES
-            condition: and(succeeded(), variables['APT_PACKAGES'])
-            displayName: Install apt packages
-          - script: haxe RunCi.hxml
-            condition: and(succeeded(), not(and(variables['SAUCE'], variables['SAUCE_ACCESS_KEY'])))
-            workingDirectory: $(Build.SourcesDirectory)/tests
-            displayName: Test
-          - script: haxe RunCi.hxml
-            condition: and(succeeded(), variables['SAUCE'], variables['SAUCE_ACCESS_KEY'])
-            workingDirectory: $(Build.SourcesDirectory)/tests
-            env:
-              SAUCE_ACCESS_KEY: $(SAUCE_ACCESS_KEY)
-            displayName: Test (with SauceLabs)
-
-      - job: TestMac
-        dependsOn: BuildMac
-        pool:
-          vmImage: 'macOS-10.14'
-        strategy:
-          matrix:
-            macro:
-              TEST: macro
-            neko:
-              TEST: neko
-            hl:
-              TEST: hl
-              BREW_PACKAGES: ninja
-            cpp:
-              TEST: cpp
-              HXCPP_COMPILE_CACHE: ~/hxcache
-            java:
-              TEST: java,jvm
-            cs:
-              TEST: cs
-            js:
-              TEST: js
-            php:
-              TEST: php
-            flash:
-              TEST: flash9
-            python:
-              TEST: python
-            lua:
-              TEST: lua
-        steps:
-          - checkout: self
-            fetchDepth: 20
-          - template: extra/azure-pipelines/install-neko-snapshot.yaml
-            parameters:
-              platform: mac
-          - task: DownloadPipelineArtifact@0
-            inputs:
-              artifactName: 'macBinaries'
-              targetPath: macBinaries
-          - script: |
-              set -ex
-              tar -xf macBinaries/*_bin.tar.gz -C macBinaries --strip-components=1
-              sudo mkdir -p /usr/local/bin/
-              sudo mkdir -p /usr/local/share/haxe/
-              sudo ln -s `pwd`/macBinaries/haxe /usr/local/bin/haxe
-              sudo ln -s `pwd`/macBinaries/haxelib /usr/local/bin/haxelib
-              sudo ln -s `pwd`/macBinaries/std /usr/local/share/haxe/std
-            displayName: Setup Haxe
-          - script: haxe -version
-            displayName: Print Haxe version
-          - script: |
-              set -ex
-              mkdir ~/haxelib
-              haxelib setup ~/haxelib
-            displayName: Setup haxelib
-          - script: brew install $BREW_PACKAGES
-            condition: and(succeeded(), variables['BREW_PACKAGES'])
-            displayName: Install homebrew packages
-          - script: |
-              # disable invalid Unicode filenames on APFS
-              echo "" > sys/compile-fs.hxml
-              haxe RunCi.hxml
-            workingDirectory: $(Build.SourcesDirectory)/tests
-            displayName: Test
-
-      - template: extra/azure-pipelines/test-windows.yml
-        parameters:
-          name: TestWin64
-          arch: '64'
-
-      - template: extra/azure-pipelines/test-windows.yml
-        parameters:
-          name: TestWin32
-          arch: '32'

+ 0 - 61
extra/azure-pipelines/build-linux.yml

@@ -1,61 +0,0 @@
-parameters:
-  name: 'BuildLinux'
-  vmImage: 'ubuntu-16.04'
-
-jobs:
-  - job: ${{ parameters.name }}
-    pool:
-      vmImage: ${{ parameters.vmImage }}
-    variables:
-      OPAMYES: 1
-      ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/')) }}:
-        ADD_REVISION: 1
-    steps:
-      - checkout: self
-        submodules: recursive
-      - script: |
-          set -ex
-          sudo add-apt-repository ppa:avsm/ppa -y # provides OPAM 2
-          sudo add-apt-repository ppa:haxe/ocaml -y # provides newer version of mbedtls
-          sudo apt-get update -qqy
-          sudo apt-get install -qqy ocaml-nox camlp5 opam libpcre3-dev zlib1g-dev libgtk2.0-dev libmbedtls-dev ninja-build
-        displayName: Install dependencies
-      - template: install-neko-snapshot.yaml
-        parameters:
-          platform: linux64
-      - script: |
-          set -ex
-          opam init
-          opam update
-          opam pin add haxe . --no-action
-          opam install haxe --deps-only
-          opam list
-          ocamlopt -v
-        displayName: Install OCaml libraries
-      - script: |
-          set -ex
-          opam config exec -- make -s -j`nproc` STATICLINK=1 haxe
-          opam config exec -- make -s haxelib
-          make -s package_bin
-          ls -l out
-          ldd -v ./haxe
-          ldd -v ./haxelib
-        displayName: Build Haxe
-      - task: PublishPipelineArtifact@0
-        inputs:
-          artifactName: 'linuxBinaries'
-          targetPath: out
-      - script: |
-          set -ex
-          make -s xmldoc
-          cat >extra/doc/info.json <<EOL
-            {
-              "commit": "$(Build.SourceVersion)",
-              "branch": "$(Build.SourceBranchName)"
-            }
-          EOL
-        displayName: Build xmldoc
-      - task: PublishPipelineArtifact@0
-        inputs:
-          artifactName: 'xmldoc'
-          targetPath: extra/doc

+ 0 - 50
extra/azure-pipelines/build-mac.yml

@@ -1,50 +0,0 @@
-parameters:
-  name: 'BuildMac'
-  vmImage: 'macOS-10.14'
-
-jobs:
-  - job: ${{ parameters.name }}
-    pool:
-      vmImage: ${{ parameters.vmImage }}
-    variables:
-      OPAMYES: 1
-      ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/')) }}:
-        ADD_REVISION: 1
-    steps:
-      - checkout: self
-        submodules: recursive
-      - script: |
-          set -ex
-          brew uninstall [email protected]
-          brew uninstall [email protected]
-          brew untap local/openssl
-          brew untap local/python2
-          brew update || brew update || brew update
-          # brew unlink python@2
-          brew bundle --file=tests/Brewfile --no-upgrade || brew link --overwrite awscli
-        displayName: Install dependencies
-      - template: install-neko-snapshot.yaml
-        parameters:
-          platform: mac
-      - script: |
-          set -ex
-          opam init
-          opam update
-          opam pin add haxe . --no-action
-          opam install haxe --deps-only
-          opam list
-          ocamlopt -v
-        displayName: Install OCaml libraries
-      - script: |
-          set -ex
-          opam config exec -- make -s -j`sysctl -n hw.ncpu` STATICLINK=1 "LIB_PARAMS=/usr/local/opt/zlib/lib/libz.a /usr/local/lib/libpcre.a /usr/local/lib/libmbedtls.a /usr/local/lib/libmbedcrypto.a /usr/local/lib/libmbedx509.a -cclib '-framework Security -framework CoreFoundation'" haxe
-          opam config exec -- make -s haxelib
-          make -s package_bin package_installer_mac
-          ls -l out
-          otool -L ./haxe
-          otool -L ./haxelib
-        displayName: Build Haxe
-      - task: PublishPipelineArtifact@0
-        inputs:
-          artifactName: 'macBinaries'
-          targetPath: out

+ 0 - 72
extra/azure-pipelines/build-windows.yml

@@ -1,72 +0,0 @@
-parameters:
-  name: 'BuildWindows'
-  vmImage: 'windows-2019'
-  arch: '64' # or '32'
-
-jobs:
-  - job: ${{ parameters.name }}
-    pool:
-      vmImage: ${{ parameters.vmImage }}
-    variables:
-      OPAMYES: 1
-      ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/')) }}:
-        ADD_REVISION: 1
-      CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
-      ${{ if eq(parameters.arch, '64') }}:
-        ARCH: 64
-        MINGW_ARCH: x86_64
-        CYGWIN_SETUP: https://cygwin.com/setup-x86_64.exe
-        CYG_ROOT: C:/cygwin64
-      ${{ if eq(parameters.arch, '32') }}:
-        ARCH: 32
-        MINGW_ARCH: i686
-        CYGWIN_SETUP: https://cygwin.com/setup-x86.exe
-        CYG_ROOT: C:/cygwin
-    steps:
-      - checkout: self
-        submodules: recursive
-      - powershell: choco install --no-progress nsis.portable --version 3.02 -y
-        displayName: choco install nsis
-      - powershell: choco install --no-progress curl wget 7zip.portable -y
-        displayName: choco install things
-      - powershell: Write-Host "##vso[task.prependpath]C:\ProgramData\chocolatey\bin"
-        displayName: Prepend Chocolatey path
-      - template: install-neko-snapshot.yaml
-        parameters:
-          ${{ if eq(parameters.arch, '64') }}:
-            platform: windows64
-          ${{ if eq(parameters.arch, '32') }}:
-            platform: windows
-      - powershell: |
-          Set-PSDebug -Trace 1
-          curl.exe -fsSL -o cygwin-setup.exe --retry 3 $(CYGWIN_SETUP)
-          Start-Process -FilePath "cygwin-setup.exe" -ArgumentList "-B -q -R $(CYG_ROOT) -l C:/tmp -s $(CYG_MIRROR) -P default -P make -P git -P zlib-devel -P rsync -P patch -P diffutils -P curl -P unzip -P tar -P m4 -P perl -P libpcre-devel -P mbedtls-devel -P mingw64-$(MINGW_ARCH)-zlib -P mingw64-$(MINGW_ARCH)-gcc-core -P mingw64-$(MINGW_ARCH)-pcre" -Wait
-          curl.exe -fsSL -o "opam.tar.xz" --retry 3 https://github.com/fdopen/opam-repository-mingw/releases/download/0.0.0.2/opam$(ARCH).tar.xz
-          curl.exe -fsSL -o "libmbedtls.tar.xz" --retry 3 https://github.com/Simn/mingw64-mbedtls/releases/download/2.16.3/mingw64-$(MINGW_ARCH)-mbedtls-2.16.3-1.tar.xz
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'echo "$OLDPWD"')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && tar -C / -xvf libmbedtls.tar.xz')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && tar -xf opam.tar.xz')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && bash opam$(ARCH)/install.sh')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'opam init mingw "https://github.com/fdopen/opam-repository-mingw.git#opam2" --comp 4.07.0+mingw$(ARCH)c --switch 4.07.0+mingw$(ARCH)c --auto-setup --yes 2>&1')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'opam update --yes 2>&1')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && opam pin add haxe . --kind=path --no-action --yes 2>&1')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'opam install haxe --deps-only --yes 2>&1')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'opam pin add luv https://github.com/aantron/luv.git#somaxconn --yes 2>&1')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'opam list')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'ocamlopt -v')
-        displayName: Install OCaml and OCaml libraries
-      - powershell: Write-Host "##vso[task.prependpath]${env:CYG_ROOT}/usr/$(MINGW_ARCH)-w64-mingw32/sys-root/mingw/bin"
-        displayName: Expose mingw dll files
-      - powershell: |
-          Set-PSDebug -Trace 1
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && opam config exec -- make -s -f Makefile.win -j`nproc` haxe 2>&1')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && opam config exec -- make -s -f Makefile.win haxelib 2>&1')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && opam config exec -- make -f Makefile.win echo_package_files package_bin package_installer_win package_choco 2>&1')
-          dir out
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && cygcheck ./haxe.exe')
-          & "$(CYG_ROOT)/bin/bash.exe" @('-lc', 'cd "$OLDPWD" && cygcheck ./haxelib.exe')
-        displayName: Build Haxe
-      - task: PublishPipelineArtifact@0
-        inputs:
-          artifactName: 'win$(ARCH)Binaries'
-          targetPath: out

+ 0 - 33
extra/azure-pipelines/install-neko-snapshot.yaml

@@ -1,33 +0,0 @@
-parameters:
-  platform: '' # can be linux64, mac, windows, or windows64
-
-steps:
-  - ${{ if startsWith(parameters.platform, 'windows') }}:
-    - powershell: |
-        Invoke-WebRequest https://build.haxe.org/builds/neko/${{parameters.platform}}/neko_latest.zip -OutFile $(Agent.TempDirectory)/neko_latest.zip
-        Expand-Archive $(Agent.TempDirectory)/neko_latest.zip -DestinationPath $(Agent.TempDirectory)
-        $NEKOPATH = Get-ChildItem $(Agent.TempDirectory)/neko-*-*
-        Write-Host "##vso[task.prependpath]$NEKOPATH"
-        Write-Host "##vso[task.setvariable variable=NEKOPATH]$NEKOPATH"
-      displayName: Install Neko using snapshot from S3
-  - ${{ if not(startsWith(parameters.platform, 'windows')) }}:
-    - bash: |
-        set -ex
-        DOWNLOADDIR=$(Agent.TempDirectory)
-        curl -sSL https://build.haxe.org/builds/neko/${{parameters.platform}}/neko_latest.tar.gz -o $(Agent.TempDirectory)/neko_latest.tar.gz
-        tar -xf $(Agent.TempDirectory)/neko_latest.tar.gz -C $(Agent.TempDirectory)
-        NEKOPATH=`echo $(Agent.TempDirectory)/neko-*-*`
-        sudo mkdir -p /usr/local/bin
-        sudo mkdir -p /usr/local/lib/neko
-        sudo ln -s $NEKOPATH/{neko,nekoc,nekoml,nekotools}  /usr/local/bin/
-        sudo ln -s $NEKOPATH/libneko.*                      /usr/local/lib/
-        sudo ln -s $NEKOPATH/*.ndll                         /usr/local/lib/neko/
-        set +x
-        echo "##vso[task.prependpath]$NEKOPATH"
-        echo "##vso[task.setvariable variable=NEKOPATH]$NEKOPATH"
-      displayName: Install Neko using snapshot from S3
-  - ${{ if eq(parameters.platform, 'linux64') }}:
-    - bash: sudo ldconfig
-      displayName: ldconfig
-  - script: neko -version 2>&1
-    displayName: Print Neko version

+ 0 - 87
extra/azure-pipelines/test-windows.yml

@@ -1,87 +0,0 @@
-parameters:
-  name: 'TestWindows'
-  vmImage: 'windows-2019'
-  arch: '64' # or '32'
-
-jobs:
-  - job: ${{ parameters.name }}
-    dependsOn: BuildWin${{ parameters.arch }}
-    pool:
-      vmImage: ${{ parameters.vmImage }}
-    variables:
-      HAXELIB_ROOT: C:/haxelib
-    strategy:
-      matrix:
-        # https://github.com/HaxeFoundation/haxe/issues/8600
-        ${{ if eq(parameters.arch, '64') }}:
-          macro:
-            TEST: macro
-        neko:
-          TEST: neko
-        hl:
-          TEST: hl
-        cpp:
-          TEST: cpp
-          HXCPP_COMPILE_CACHE: C:/hxcache
-        java:
-          # https://github.com/HaxeFoundation/haxe/issues/8601
-          ${{ if eq(parameters.arch, '64') }}:
-            TEST: java,jvm
-          ${{ if eq(parameters.arch, '32') }}:
-            TEST: java
-        cs:
-          TEST: cs
-        js:
-          TEST: js
-        php:
-          TEST: php
-        # TODO. flash has never been enabled on our AppVeyor builds.
-        # flash:
-        #   TEST: flash9
-        python:
-          TEST: python
-        # TODO. Lua has never been enabled on our AppVeyor builds.
-        # lua:
-        #   TEST: lua
-    steps:
-      - checkout: self
-        fetchDepth: 20
-      - template: install-neko-snapshot.yaml
-        parameters:
-          ${{ if eq(parameters.arch, '64') }}:
-            platform: windows64
-          ${{ if eq(parameters.arch, '32') }}:
-            platform: windows
-      - task: DownloadPipelineArtifact@0
-        inputs:
-          artifactName: 'win${{ parameters.arch }}Binaries'
-          targetPath: win${{ parameters.arch }}Binaries
-      - powershell: |
-          Set-PSDebug -Trace 1
-          7z x win${{ parameters.arch }}Binaries/*_bin.zip -owin${{ parameters.arch }}Binaries
-          $dir = Get-ChildItem win${{ parameters.arch }}Binaries/* -Name -Directory
-          Rename-Item win${{ parameters.arch }}Binaries/$dir haxe
-          $dir = '' + ( get-location ) + '\win${{ parameters.arch }}Binaries\haxe'
-          dir $dir
-          Set-PSDebug -Trace 0
-          Write-Host "##vso[task.prependpath]$dir"
-        displayName: Setup Haxe
-      - script: haxe -version
-        displayName: Print Haxe version
-      - task: UsePythonVersion@0
-        inputs:
-          versionSpec: '3.7'
-      - powershell: |
-          Set-PSDebug -Trace 1
-          $pypath = python -c "import sys; print(sys.executable)"
-          $py3path = $pypath.replace("python.exe","python3.exe")
-          cmd /c mklink $py3path $pypath
-          python3 -V
-        displayName: "Make Python 3 be available as python3 in the cmdline"
-      - script: |
-          mkdir "$(HAXELIB_ROOT)"
-          haxelib setup "$(HAXELIB_ROOT)"
-        displayName: Setup haxelib
-      - script: haxe RunCi.hxml
-        workingDirectory: $(Build.SourcesDirectory)/tests
-        displayName: Test