diff --git a/.github/workflows/build-darwin-arm64.yml b/.github/workflows/build-darwin-arm64.yml index bbe8dbf..0af025f 100644 --- a/.github/workflows/build-darwin-arm64.yml +++ b/.github/workflows/build-darwin-arm64.yml @@ -24,6 +24,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Build xPack GCC darwin-arm64' on: @@ -64,6 +69,15 @@ on: jobs: + + + + + + + + + darwin-arm64-build: name: 'darwin-arm64 gcc ${{github.event.inputs.version}} build' timeout-minutes: 2880 # 2 days @@ -185,9 +199,12 @@ jobs: - name: 'Run ${{github.event.inputs.version}} native test' run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url pre-release + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: name: tests-report-darwin-arm64 path: ${{github.workspace}}/build-assets/build/darwin-arm64/artefacts/tests-report-*.md overwrite: true + + diff --git a/.github/workflows/build-darwin-x64.yml b/.github/workflows/build-darwin-x64.yml index 0709efe..17658f3 100644 --- a/.github/workflows/build-darwin-x64.yml +++ b/.github/workflows/build-darwin-x64.yml @@ -24,6 +24,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Build xPack GCC darwin-x64' on: @@ -64,6 +69,13 @@ on: jobs: + + + + + + + darwin-x64-build: name: 'darwin-x64 gcc ${{github.event.inputs.version}} build' timeout-minutes: 2880 # 2 days @@ -185,9 +197,12 @@ jobs: - name: 'Run ${{github.event.inputs.version}} native test' run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url pre-release + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: name: tests-report-darwin-x64 path: ${{github.workspace}}/build-assets/build/darwin-x64/artefacts/tests-report-*.md overwrite: true + + diff --git a/.github/workflows/build-linux-arm.yml b/.github/workflows/build-linux-arm.yml index 7e5f9fc..19c5ba5 100644 --- a/.github/workflows/build-linux-arm.yml +++ b/.github/workflows/build-linux-arm.yml @@ -24,6 +24,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Build xPack GCC linux-arm' on: @@ -64,6 +69,11 @@ on: jobs: + + + + + linux-arm-build: name: 'linux-arm gcc ${{github.event.inputs.version}} build' timeout-minutes: 2880 # 2 days @@ -204,9 +214,12 @@ jobs: entrypoint: /bin/bash # /usr/bin/linux32 args: /github/workspace/build-assets/scripts/test.sh --image debian --version ${{github.event.inputs.version}} --base-url pre-release + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: name: tests-report-linux-arm path: ${{github.workspace}}/build-assets/build/linux-arm/artefacts/tests-report-*.md overwrite: true + + diff --git a/.github/workflows/build-linux-arm64.yml b/.github/workflows/build-linux-arm64.yml index a4b869e..5b2fcd2 100644 --- a/.github/workflows/build-linux-arm64.yml +++ b/.github/workflows/build-linux-arm64.yml @@ -24,6 +24,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Build xPack GCC linux-arm64' on: @@ -64,6 +69,9 @@ on: jobs: + + + linux-arm64-build: name: 'linux-arm64 gcc ${{github.event.inputs.version}} build' timeout-minutes: 2880 # 2 days @@ -205,9 +213,12 @@ jobs: entrypoint: /bin/bash args: /github/workspace/build-assets/scripts/test.sh --image debian --version ${{github.event.inputs.version}} --base-url pre-release + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: name: tests-report-linux-arm64 path: ${{github.workspace}}/build-assets/build/linux-arm64/artefacts/tests-report-*.md overwrite: true + + diff --git a/.github/workflows/build-linux-x64.yml b/.github/workflows/build-linux-x64.yml index e8ca215..cb5c322 100644 --- a/.github/workflows/build-linux-x64.yml +++ b/.github/workflows/build-linux-x64.yml @@ -24,6 +24,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Build xPack GCC linux-x64' on: @@ -64,6 +69,7 @@ on: jobs: + linux-x64-build: name: 'linux-x64 gcc ${{github.event.inputs.version}} build' timeout-minutes: 5760 # 4 days @@ -193,9 +199,12 @@ jobs: - name: 'Run ${{github.event.inputs.version}} native test' run: bash build-assets/scripts/test.sh --image github-actions-ubuntu-latest --version ${{github.event.inputs.version}} --base-url pre-release + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: name: tests-report-linux-x64 path: ${{github.workspace}}/build-assets/build/linux-x64/artefacts/tests-report-*.md overwrite: true + + diff --git a/.github/workflows/build-win32-x64.yml b/.github/workflows/build-win32-x64.yml index c1104e0..8c6e865 100644 --- a/.github/workflows/build-win32-x64.yml +++ b/.github/workflows/build-win32-x64.yml @@ -24,6 +24,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Build xPack GCC win32-x64' on: @@ -64,6 +69,17 @@ on: jobs: + + + + + + + + + + + win32-x64-build: name: 'win32-x64 gcc ${{github.event.inputs.version}} build' timeout-minutes: 5760 # 4 days @@ -200,9 +216,13 @@ jobs: - name: 'Run ${{github.event.inputs.version}} native test' run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url pre-release + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: name: tests-report-win32-x64 path: ${{github.workspace}}/build-assets/build/win32-x64/artefacts/tests-report-*.md overwrite: true + + + diff --git a/.github/workflows/deep-clean.yml b/.github/workflows/deep-clean.yml index a1e770b..31f8876 100644 --- a/.github/workflows/deep-clean.yml +++ b/.github/workflows/deep-clean.yml @@ -24,6 +24,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Deep clean xPack GCC' on: @@ -36,6 +41,7 @@ on: jobs: + linux-x64: name: 'linux-x64 gcc ${{github.event.inputs.version}} clean' timeout-minutes: 5760 # 4 days @@ -57,6 +63,17 @@ jobs: + + + + + + + + + + + win32-x64: name: 'win32-x64 gcc ${{github.event.inputs.version}} clean' timeout-minutes: 5760 # 4 days @@ -78,6 +95,11 @@ jobs: + + + + + linux-arm: name: 'linux-arm gcc ${{github.event.inputs.version}} clean' timeout-minutes: 2880 # 2 days @@ -100,6 +122,9 @@ jobs: + + + linux-arm64: name: 'linux-arm64 gcc ${{github.event.inputs.version}} clean' timeout-minutes: 2880 # 2 days @@ -121,6 +146,13 @@ jobs: + + + + + + + darwin-x64: name: 'darwin-x64 gcc ${{github.event.inputs.version}} clean' timeout-minutes: 2880 # 2 days @@ -144,6 +176,15 @@ jobs: + + + + + + + + + darwin-arm64: name: 'darwin-arm64 gcc ${{github.event.inputs.version}} clean' timeout-minutes: 2880 # 2 days @@ -164,3 +205,4 @@ jobs: run: | chmod -Rf a+w * || true rm -rf * .git* + diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index f5f4cdc..80889fb 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -24,6 +24,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Publish the xPack GCC release' on: @@ -71,7 +76,7 @@ jobs: run: | ls -lLA npm --prefix build-assets install -dd - ./build-assets/node_modules/.bin/liquidjs --context '{ "XBB_RELEASE_VERSION": "${{github.event.inputs.version}}" }' --template @build-assets/templates/body-github-release-liquid.md --output .github/workflows/body-github-release.md + ./build-assets/node_modules/.bin/liquidjs --context '{ "releaseVersion": "${{github.event.inputs.version}}" }' --template @build-assets/templates/body-github-release-liquid.md --output .github/workflows/body-github-release.md cat .github/workflows/body-github-release.md - name: 'Publish release' diff --git a/.github/workflows/test-docker-linux-arm.yml b/.github/workflows/test-docker-linux-arm.yml index 3e6a7bf..0f7a75d 100644 --- a/.github/workflows/test-docker-linux-arm.yml +++ b/.github/workflows/test-docker-linux-arm.yml @@ -25,6 +25,11 @@ # ----------------------------------------------------------------------------- + + + + + # https://github.com/docker-library/official-images#architectures-other-than-amd64 # Debian versions: @@ -65,6 +70,9 @@ on: # so `native-test.sh` should be fine, it already takes care of updates. jobs: + + + # https://en.wikipedia.org/wiki/Ubuntu_version_history # https://hub.docker.com/_/ubuntu # The ubuntu:12.04 image fails to update. @@ -479,6 +487,8 @@ jobs: entrypoint: /bin/bash args: /github/workspace/build-assets/scripts/test.sh --image opensuse/tumbleweed --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} + + # https://hub.docker.com/r/arm32v7/ubuntu/ ubuntu-arm: name: 'arm gcc ${{github.event.inputs.version}} test on Ubuntu stable' @@ -709,4 +719,11 @@ jobs: # arm32v7/opensuse:latest is leap 42.3 and fails due to http: URLs # (zypper lr -u) + + + + + + + # ----------------------------------------------------------------------------- diff --git a/.github/workflows/test-docker-linux-intel.yml b/.github/workflows/test-docker-linux-intel.yml index e36df08..31fa04b 100644 --- a/.github/workflows/test-docker-linux-intel.yml +++ b/.github/workflows/test-docker-linux-intel.yml @@ -25,6 +25,11 @@ # ----------------------------------------------------------------------------- + + + + + # https://github.com/docker-library/official-images#architectures-other-than-amd64 # Debian versions: @@ -65,6 +70,7 @@ on: # so `native-test.sh` should be fine, it already takes care of updates. jobs: + # https://en.wikipedia.org/wiki/Ubuntu_version_history # https://hub.docker.com/_/ubuntu # The ubuntu:12.04 image fails to update. @@ -443,4 +449,15 @@ jobs: # - https://hub.docker.com/r/gentoo/portage # docker://gentoo/portage - exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown. + + + + + + + + + + + # ----------------------------------------------------------------------------- diff --git a/.github/workflows/test-prime.yml b/.github/workflows/test-prime.yml index 30be33e..41a80e7 100644 --- a/.github/workflows/test-prime.yml +++ b/.github/workflows/test-prime.yml @@ -25,6 +25,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Test xPack GCC on supported platforms' on: @@ -45,6 +50,7 @@ on: jobs: + linux-x64-test: name: 'linux-x64 gcc ${{github.event.inputs.version}} test' runs-on: ubuntu-22.04 @@ -75,6 +81,7 @@ jobs: - name: 'Run ${{github.event.inputs.version}} native test' run: bash build-assets/scripts/test.sh --image github-actions-ubuntu-latest --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -82,6 +89,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/linux-x64/artefacts/tests-report-*.md overwrite: true + + + linux-arm64-test: name: 'linux-arm64 gcc ${{github.event.inputs.version}} test' runs-on: [self-hosted, linux, arm64, xbbla] @@ -121,6 +131,7 @@ jobs: entrypoint: /bin/bash args: /github/workspace/build-assets/scripts/test.sh --image ubuntu:22.04 --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -128,6 +139,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/linux-arm64/artefacts/tests-report-*.md overwrite: true + + + linux-arm-test: name: 'linux-arm gcc ${{github.event.inputs.version}} test' runs-on: [self-hosted, linux, arm, xbbla32] @@ -167,6 +181,7 @@ jobs: entrypoint: /bin/bash # /usr/bin/linux32 args: /github/workspace/build-assets/scripts/test.sh --image debian --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -174,6 +189,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/linux-arm/artefacts/tests-report-*.md overwrite: true + + + darwin-x64-test: name: 'darwin-x64 gcc ${{github.event.inputs.version}} test' # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md @@ -218,6 +236,7 @@ jobs: - name: 'Run ${{github.event.inputs.version}} native test' run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -225,6 +244,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/darwin-x64/artefacts/tests-report-*.md overwrite: true + + + darwin-arm64-test: name: 'darwin-arm64 gcc ${{github.event.inputs.version}} test' # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md @@ -269,6 +291,7 @@ jobs: - name: 'Run ${{github.event.inputs.version}} native test' run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -276,6 +299,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/darwin-arm64/artefacts/tests-report-*.md overwrite: true + + + win32-x64-test: name: 'win32-x64 gcc ${{github.event.inputs.version}} test' runs-on: windows-2022 @@ -311,6 +337,7 @@ jobs: - name: 'Run ${{github.event.inputs.version}} native test' run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -318,6 +345,44 @@ jobs: path: ${{github.workspace}}/build-assets/build/win32-x64/artefacts/tests-report-*.md overwrite: true + # One more run with the oldest Windows available. + win32-x64-test2: + name: 'win32-x64 gcc ${{github.event.inputs.version}} test 2019' + runs-on: windows-2019 + defaults: + run: + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell + shell: bash # for -- + + steps: + - name: 'Show environment' + run: | + uname -a + systeminfo # lsb_release -sd + echo "whoami: $(whoami)" + echo "pwd: $(pwd)" + ls -lLA + env | sort | grep -E '^[^ \t]+=' + + # https://github.com/actions/checkout + - name: 'Checkout project' + uses: actions/checkout@v4 + with: + fetch-depth: 3 + + - name: 'Checkout helper ${{github.event.inputs.helper-git-ref}}' + uses: actions/checkout@v4 + with: + repository: xpack-dev-tools/xbb-helper-xpack + path: build-assets/xpacks/@xpack-dev-tools/xbb-helper + ref: ${{github.event.inputs.helper-git-ref}} + fetch-depth: 3 + + - name: 'Run ${{github.event.inputs.version}} native test' + run: bash build-assets/scripts/test.sh --version ${{github.event.inputs.version}} --base-url ${{github.event.inputs.base_url}} + + + generate-tests-report: name: 'Generate tests report for GCC@${{github.event.inputs.version}}' runs-on: ubuntu-22.04 @@ -351,4 +416,5 @@ jobs: path: ${{github.workspace}}/build-assets/artefacts/${{github.event.inputs.version}}.md overwrite: true + # ----------------------------------------------------------------------------- diff --git a/.github/workflows/test-xpm.yml b/.github/workflows/test-xpm.yml index 475fac3..26c5cdc 100644 --- a/.github/workflows/test-xpm.yml +++ b/.github/workflows/test-xpm.yml @@ -25,6 +25,11 @@ # ----------------------------------------------------------------------------- + + + + + name: 'Test xPack GCC via xpm' on: @@ -33,7 +38,7 @@ on: package-version: description: 'The semver of the npm release' required: false - default: 'next' + default: 'test' version: description: 'The GitHub release version' required: false @@ -45,6 +50,7 @@ on: jobs: + linux-x64-test: name: 'linux-x64 GCC@${{github.event.inputs.version}} test' runs-on: ubuntu-22.04 @@ -78,6 +84,7 @@ jobs: entrypoint: /bin/bash args: /github/workspace/build-assets/scripts/test.sh --image debian --package-version ${{github.event.inputs.package-version}} --version ${{github.event.inputs.version}} --xpm + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -85,6 +92,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/linux-x64/artefacts/tests-report-*.md overwrite: true + + + linux-arm64-test: name: 'linux-arm64 GCC@${{github.event.inputs.version}} test' runs-on: [self-hosted, linux, arm64, xbbla] @@ -124,6 +134,7 @@ jobs: entrypoint: /bin/bash args: /github/workspace/build-assets/scripts/test.sh --image debian --package-version ${{github.event.inputs.package-version}} --version ${{github.event.inputs.version}} --xpm + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -131,6 +142,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/linux-arm64/artefacts/tests-report-*.md overwrite: true + + + linux-arm-test: name: 'linux-arm GCC@${{github.event.inputs.version}} test' runs-on: [self-hosted, linux, arm, xbbla32] @@ -170,6 +184,7 @@ jobs: entrypoint: /bin/bash # /usr/bin/linux32 args: /github/workspace/build-assets/scripts/test.sh --image debian --package-version ${{github.event.inputs.package-version}} --version ${{github.event.inputs.version}} --xpm + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -177,6 +192,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/linux-arm/artefacts/tests-report-*.md overwrite: true + + + darwin-x64-test: name: 'darwin-x64 GCC@${{github.event.inputs.version}} test' runs-on: macos-12 @@ -220,6 +238,7 @@ jobs: - name: 'Run ${{github.event.inputs.version}} xpm test' run: bash build-assets/scripts/test.sh --package-version ${{github.event.inputs.package-version}} --version ${{github.event.inputs.version}} --xpm + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -227,6 +246,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/darwin-x64/artefacts/tests-report-*.md overwrite: true + + + darwin-arm64-test: name: 'darwin-arm64 GCC@${{github.event.inputs.version}} test' runs-on: macos-14 @@ -270,6 +292,7 @@ jobs: - name: 'Run ${{github.event.inputs.version}} xpm test' run: bash build-assets/scripts/test.sh --package-version ${{github.event.inputs.package-version}} --version ${{github.event.inputs.version}} --xpm + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -277,6 +300,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/darwin-arm64/artefacts/tests-report-*.md overwrite: true + + + win32-x64-test: name: 'win32-x64 GCC@${{github.event.inputs.version}} test' runs-on: windows-2022 @@ -312,6 +338,7 @@ jobs: - name: 'Run ${{github.event.inputs.version}} xpm test' run: bash build-assets/scripts/test.sh --package-version ${{github.event.inputs.package-version}} --version ${{github.event.inputs.version}} --xpm + - name: Upload platform tests report uses: actions/upload-artifact@v4 with: @@ -319,6 +346,9 @@ jobs: path: ${{github.workspace}}/build-assets/build/win32-x64/artefacts/tests-report-*.md overwrite: true + + + generate-tests-report: name: 'Generate tests report for GCC@${{github.event.inputs.version}}' runs-on: ubuntu-22.04 @@ -337,9 +367,6 @@ jobs: touch ${{github.workspace}}/build-assets/artefacts/tests-report.md echo "---" >>${{github.workspace}}/build-assets/artefacts/tests-report.md echo "title: GCC ${{github.event.inputs.version}} test results" >>${{github.workspace}}/build-assets/artefacts/tests-report.md - echo "permalink: /dev-tools/gcc/tests/${{github.event.inputs.version}}/" >>${{github.workspace}}/build-assets/artefacts/tests-report.md - echo >>${{github.workspace}}/build-assets/artefacts/tests-report.md - echo "comments: true" >>${{github.workspace}}/build-assets/artefacts/tests-report.md echo >>${{github.workspace}}/build-assets/artefacts/tests-report.md echo "date: $(date "+%Y-%m-%d %H:%M:%S %z")" >>${{github.workspace}}/build-assets/artefacts/tests-report.md echo >>${{github.workspace}}/build-assets/artefacts/tests-report.md @@ -355,4 +382,5 @@ jobs: path: ${{github.workspace}}/build-assets/artefacts/${{github.event.inputs.version}}.md overwrite: true + # -----------------------------------------------------------------------------