diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml deleted file mode 100644 index 313632191c..0000000000 --- a/.github/workflows/android-build.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: android-apk build - -on: [push, pull_request] - -env: - BUILD_HOST: ubuntu-latest - USERNAME: github-actions - -jobs: - - make-apk: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Pull the Docker Image - run: docker pull cristianbindea/scopy-android:latest - - name: Run Docker Image - run: | - $GITHUB_WORKSPACE/CI/appveyor/gen_ci_envs.sh > $GITHUB_WORKSPACE/CI/appveyor/gh-actions.envs - docker run --privileged --net=host \ - -v $(pwd):$GITHUB_WORKSPACE:rw \ - -e "BRANCH=${GITHUB_REF#refs/heads/}" \ - --env-file $GITHUB_WORKSPACE/CI/appveyor/gh-actions.envs \ - cristianbindea/scopy-android:latest /bin/bash -xe $GITHUB_WORKSPACE/CI/appveyor/build_scopy_apk.sh - - uses: actions/upload-artifact@v3 - with: - name: scopy-android - path: | - ${{ github.workspace }}/*.apk - ${{ github.workspace }}/*.aab - ${{ github.workspace }}/scopy*android-native-symbols.zip - - - - name: Upload master apk and aab builds to continous prerelease - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - run: | - ARTIFACTS_ARCHIVE=scopy-${GITHUB_SHA::7}-android.zip - zip ${ARTIFACTS_ARCHIVE} *.apk *.aab - - wget https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz - tar xvf ghr_v0.13.0_linux_amd64.tar.gz - - ghr_v0.13.0_linux_amd64/ghr -u ${{ github.repository_owner }} -r scopy -name "Continuous build" -b "Latest succesful master build " -prerelease -debug -replace continous ${ARTIFACTS_ARCHIVE} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/appimage-armhf.yml b/.github/workflows/appimage-armhf.yml deleted file mode 100644 index f96c9e65db..0000000000 --- a/.github/workflows/appimage-armhf.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Scopy1 armhf Build - -on: [push, pull_request] - -env: - BUILD_HOST: ubuntu-20.04 - USERNAME: github-actions - -jobs: - - build_scopy1_armhf: - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v4 - with: - set-safe-directory: 'true' - - - name: Pull the Docker Image - run: docker pull cristianbindea/scopy1-armhf-appimage:latest - - - name: Create Scopy armhf AppImage - shell: bash - run: | - cd $GITHUB_WORKSPACE - sudo apt update - ./CI/armhf/create_sysroot.sh install_packages install_qemu - ./CI/armhf/armhf_build_process.sh generate_ci_envs - - docker run \ - --mount type=bind,source="$GITHUB_WORKSPACE",target=/home/runner/scopy \ - --env-file $GITHUB_WORKSPACE/CI/armhf/gh-actions.envs \ - cristianbindea/scopy1-armhf-appimage:latest \ - /bin/bash -c 'cd $HOME && \ - sudo chown -R runner:runner scopy && \ - cd $HOME/scopy && \ - ./CI/armhf/armhf_build_process.sh run_workflow - ' - - name: Set short git commit SHA - shell: bash - run: echo "commit_sha=$(git rev-parse --short ${{ github.sha }})" >> "$GITHUB_ENV" - - # DEBUG WITH SSH - # - name: Setup upterm session - # uses: lhotari/action-upterm@v1 - # if: ${{ failure() }} - # with: - # wait-timeout-minutes: 3 - - - uses: actions/upload-artifact@v4 - with: - name: scopy-linux-armhf-${{ env.commit_sha }} - path: ${{ github.workspace }}/Scopy1-armhf.AppImage diff --git a/.github/workflows/appimage-x86_64.yml b/.github/workflows/appimage-x86_64.yml deleted file mode 100644 index d74df7589e..0000000000 --- a/.github/workflows/appimage-x86_64.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Scopy1 x86_64 AppImage Build - -on: [push, pull_request] - -env: - BUILD_HOST: ubuntu-20.04 - USERNAME: github-actions - -jobs: - - build_scopy1_x86-64_appimage: - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v4 - with: - set-safe-directory: 'true' - - - name: Pull the Docker Image - run: docker pull cristianbindea/scopy1-x86_64-appimage:latest - - - name: Create Scopy AppImage - shell: bash - run: | - export CI_SCRIPT=ON - cd $GITHUB_WORKSPACE - ./CI/x86_64/x86-64_appimage_process.sh generate_ci_envs - - docker run \ - --mount type=bind,source="$GITHUB_WORKSPACE",target=/home/runner/scopy \ - --env-file $GITHUB_WORKSPACE/CI/x86_64/gh-actions.envs \ - cristianbindea/scopy1-x86_64-appimage:latest \ - /bin/bash -c 'cd $HOME && \ - sudo chown -R runner:runner scopy && \ - cd $HOME/scopy && \ - ./CI/x86_64/x86-64_appimage_process.sh download_tools build_iio-emu build_scopy create_appdir create_appimage move_appimage - ' - - name: Set short git commit SHA - shell: bash - run: echo "commit_sha=$(git rev-parse --short ${{ github.sha }})" >> "$GITHUB_ENV" - - - uses: actions/upload-artifact@v4 - with: - name: scopy-linux-x86_64-${{ env.commit_sha }} - path: ${{ github.workspace }}/Scopy1-x86_64.AppImage diff --git a/.github/workflows/linuxflatpakbuild.yml b/.github/workflows/linuxflatpakbuild.yml deleted file mode 100644 index 668faf9619..0000000000 --- a/.github/workflows/linuxflatpakbuild.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: linux-flatpak build - -on: [push, pull_request] - -env: - BUILD_HOST: ubuntu-latest - USERNAME: github-actions - -jobs: - - make-flatpak: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Pull the Docker Image - run: docker pull cristianbindea/scopy-flatpak - - - name: Run Docker Image - run: | - $GITHUB_WORKSPACE/CI/appveyor/gen_ci_envs.sh > $GITHUB_WORKSPACE/CI/appveyor/gh-actions.envs - docker run --privileged \ - -v `pwd`:$GITHUB_WORKSPACE:rw \ - --env-file $GITHUB_WORKSPACE/CI/appveyor/gh-actions.envs \ - cristianbindea/scopy-flatpak /bin/bash -xe $GITHUB_WORKSPACE/CI/appveyor/inside_flatpak_docker.sh - - - uses: actions/upload-artifact@v3 - with: - name: Scopy.flatpak - path: ${{ github.workspace }}/Scopy.flatpak - - - name: Upload master flatpak build to continous prerelease - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - run: | - DEPLOY_FILE=Scopy-${GITHUB_SHA::7}.flatpak - ARTIFACT_ARCHIVE=Scopy-flatpak.tar.gz - - cp ${{ github.workspace }}/Scopy.flatpak ${DEPLOY_FILE} - tar -czvf ${ARTIFACT_ARCHIVE} ${DEPLOY_FILE} - - wget https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz - tar xvf ghr_v0.13.0_linux_amd64.tar.gz - - ghr_v0.13.0_linux_amd64/ghr -u ${{ github.repository_owner }} -r scopy -name "Continuous build" -b "Latest succesful master build " -prerelease -debug -replace continous ${ARTIFACT_ARCHIVE} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 510d98de6b..0000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,93 +0,0 @@ -variables: - QT_FORMULAE: qt@5 - REPO_SLUG: $(Build.Repository.Name) - CURRENT_COMMIT: $(Build.SourceVersion) - -trigger: - branches: - include: - - main - - master - - staging/* - - ci-* - tags: - include: - - v* - -pr: - branches: - include: - - main - - master - - 20* - -stages: -- stage: Builds - jobs: - - job: macOSBuilds - strategy: - matrix: - macOS_12: - vmImage: 'macOS-12' - artifactName: 'macOS-12' - macOS_13: - vmImage: 'macOS-13' - artifactName: 'macOS-13' - pool: - vmImage: $[ variables['vmImage'] ] - steps: - - checkout: self - fetchDepth: 1 - clean: true - - script: ./CI/appveyor/install_macos_deps.sh - displayName: 'Dependencies' - workingDirectory: $(Build.Repository.LocalPath) - - script: | - export BUILD_HOST="$(vmImage)" - export ACCOUNT_NAME=`echo $REPO_SLUG | awk -F "/" '{print $1}'` - export PROJECT_NAME=`echo $REPO_SLUG | awk -F "/" '{print $2}'` - export USERNAME="azure-pipelines" - export BUILD_REPO_URL=$(Build.Repository.Uri) - export RUN_ID=$(Build.BuildId) - export RUN_NUMBER=$(Build.BuildNumber) - export JOB_ID=$(System.JobId) - export JOB_NAME=$(System.JobName) - export RUNNER_ARCH=$(Agent.OSArchitecture) - ./CI/appveyor/build_appveyor_macos.sh - displayName: 'Build' - workingDirectory: $(Build.Repository.LocalPath) - - script: ./CI/appveyor/package_darwin.sh - displayName: 'Create Scopy.dmg' - workingDirectory: $(Build.Repository.LocalPath) - - script: cp -R staging ${BUILD_ARTIFACTSTAGINGDIRECTORY} - displayName: 'Copy staging dir' - workingDirectory: $(Build.Repository.LocalPath) - - script: | - echo "ACCOUNT_NAME = " ${ACCOUNT_NAME} - echo "PROJECT_NAME = " ${PROJECT_NAME} - MACOS_VERSION=$(/usr/libexec/PlistBuddy -c "Print:ProductVersion" /System/Library/CoreServices/SystemVersion.plist) - DEPLOY_FILE=Scopy-macos${MACOS_VERSION}-${CURRENT_COMMIT:0:7}.dmg - cp build/ScopyApp.zip ${BUILD_ARTIFACTSTAGINGDIRECTORY} - cp build/Scopy.dmg ${BUILD_ARTIFACTSTAGINGDIRECTORY}/${DEPLOY_FILE} - cd ${BUILD_ARTIFACTSTAGINGDIRECTORY} - tar czvf Scopy-macos${MACOS_VERSION}.tar.gz ${DEPLOY_FILE} - ls -la - displayName: 'Rename and copy artifact' - workingDirectory: $(Build.Repository.LocalPath) - - task: GithubRelease@0 - displayName: 'Push to continuous release' - condition: and(succeeded(), and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))) - inputs: - githubConnection: scopy_continuous_release - repositoryName: $(Build.Repository.Name) - action: edit - tag: continous - assets: $(Build.ArtifactStagingDirectory)/Scopy*.tar.gz - assetUploadMode: replace - isPreRelease: true - addChangeLog: false - - task: PublishPipelineArtifact@1 - condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) - inputs: - targetPath: '$(Build.ArtifactStagingDirectory)' - artifactName: '$(artifactName)'