Skip to content

Commit

Permalink
Try travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Nov 22, 2024
1 parent fb113d8 commit 31211b9
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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'
Expand Down
64 changes: 64 additions & 0 deletions travis.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 31211b9

Please sign in to comment.