From 31211b9da6466664874808f8c8509a3b77633b88 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Fri, 22 Nov 2024 11:27:17 +0400 Subject: [PATCH] Try travis build --- .github/workflows/build.yml | 3 +- travis.yml | 64 +++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c336697..6e23cc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: name: Fetch Qt Binaries strategy: matrix: - os: [ubuntu-22.04, windows-2022, macos-14, [self-hosted, linux, ARM64]] + os: [ubuntu-22.04, windows-2022, macos-14] runs-on: ${{ matrix.os }} @@ -58,7 +58,6 @@ jobs: persist-credentials: false - name: Install Qt - if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-14' || matrix.os == 'windows-2022' uses: jurplel/install-qt-action@v4 with: version: '6.8.0' diff --git a/travis.yml b/travis.yml new file mode 100644 index 0000000..7d43233 --- /dev/null +++ b/travis.yml @@ -0,0 +1,64 @@ +language: node_js + +if: type = api + +node_js: + - "22.9.0" + +jobs: + include: + + - name: "Linux" + os: linux + dist: jammy + sudo: true + arch: arm64 + env: + - OS_NAME=aarch64 + - SCRIPT_NAME=linux + - QT_ARCH=linux_arm64 + - QT_COMPILER=linux_gcc_arm64 + + - name: "MacOS" + os: osx + arch: amd64 + env: + - OS_NAME=osx + - SCRIPT_NAME=macos + - QT_ARCH=mac + - QT_COMPILER=clang_64 + +before_install: + - python -m pip install --upgrade pip setuptools + - python -m pip install aqtinstall + # - python -m pip install pyqt5-sip + # - python -m pip install pyqt5 --config-settings --confirm-license= --verbose + # - python -m pip install "anki == 24.06.3" + # - python -m pip install "aqt == 24.6.3" + # - python -m pip install "aqt == 24.6.3" + - aqt install-qt --outputdir ~/Qt ${QT_ARCH} desktop 6.8.0 ${QT_COMPILER} + - echo LSLSLSLSLLSLSLSLSLSLLS + - ls ~ + - echo LSLSLSLSLLSLSLSLSLSLLS 222222222222222222 + - ls ~/Qt + +install: + - RELEASE_VERSION=`node -p "'version='+require('./package').version"` + - echo $RELEASE_VERSION + +script: + - chmod +x src/qt-copy-${SCRIPT_NAME}.sh + - src/qt-copy-${SCRIPT_NAME}.sh ${{ env.QT_TMP }} /home/opc/6.8.0/gcc_arm64 + - cd '${{ env.QT_TMP }}' + - tar -czf ../${{ env.OS_NAME }}.gz * + +deploy: + provider: releases + overwrite: true + draft: true + name: Release ${RELEASE_VERSION}-t + tag_name: ${RELEASE_VERSION}-t + target_commitish: $TRAVIS_COMMIT + token: $GITHUB_TOKEN + file: ${OS_NAME}.gz + edge: true