Skip to content

Commit

Permalink
re-generate workflows & scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Aug 1, 2024
1 parent 648c51e commit 6471c40
Show file tree
Hide file tree
Showing 17 changed files with 227 additions and 219 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build-darwin-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,27 +106,27 @@ jobs:
- name: 'Install project dependencies'
timeout-minutes: 1440
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .

- name: 'Build darwin-arm64 binaries'
timeout-minutes: 1440
run: |
xpm install --config darwin-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
xpm run build --config darwin-arm64
xpm install --config darwin-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .
xpm run build --config darwin-arm64 -C .
- name: Upload platform artefacts
uses: actions/upload-artifact@v4
with:
name: deploy-darwin-arm64
path: ${{ github.workspace }}/build/darwin-arm64/deploy/*
path: ${{ github.workspace }}/./build/darwin-arm64/deploy/*
overwrite: true

- name: 'Publish pre-release'
# https://github.com/ncipollo/release-action
uses: ncipollo/[email protected]
with:
allowUpdates: true
artifacts: 'build/darwin-arm64/deploy/*'
artifacts: './build/darwin-arm64/deploy/*'
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
commit: 'master'
draft: false
Expand All @@ -143,7 +143,7 @@ jobs:

- name: 'Rename working area'
# For just in case absolute paths remain unprocessed.
run: mv -v build build-$(date -u +%Y%m%d-%H%M%S)
run: mv -v ./build ./build-$(date -u +%Y%m%d-%H%M%S)

darwin-arm64-test:
name: 'darwin-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test'
Expand Down Expand Up @@ -178,16 +178,16 @@ jobs:
uses: actions/checkout@v4
with:
repository: xpack-dev-tools/xbb-helper-xpack
path: xpacks/@xpack-dev-tools/xbb-helper
path: ./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 scripts/test.sh --version ${{ github.event.inputs.version }} --base-url pre-release
run: bash ./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/darwin-arm64/artefacts/tests-report-*.md
path: ${{ github.workspace }}/./build/darwin-arm64/artefacts/tests-report-*.md
overwrite: true
18 changes: 9 additions & 9 deletions .github/workflows/build-darwin-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,27 +106,27 @@ jobs:
- name: 'Install project dependencies'
timeout-minutes: 1440
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .

- name: 'Build darwin-x64 binaries'
timeout-minutes: 1440
run: |
xpm install --config darwin-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
xpm run build --config darwin-x64
xpm install --config darwin-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .
xpm run build --config darwin-x64 -C .
- name: Upload platform artefacts
uses: actions/upload-artifact@v4
with:
name: deploy-darwin-x64
path: ${{ github.workspace }}/build/darwin-x64/deploy/*
path: ${{ github.workspace }}/./build/darwin-x64/deploy/*
overwrite: true

- name: 'Publish pre-release'
# https://github.com/ncipollo/release-action
uses: ncipollo/[email protected]
with:
allowUpdates: true
artifacts: 'build/darwin-x64/deploy/*'
artifacts: './build/darwin-x64/deploy/*'
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
commit: 'master'
draft: false
Expand All @@ -143,7 +143,7 @@ jobs:

- name: 'Rename working area'
# For just in case absolute paths remain unprocessed.
run: mv -v build build-$(date -u +%Y%m%d-%H%M%S)
run: mv -v ./build ./build-$(date -u +%Y%m%d-%H%M%S)

darwin-x64-test:
name: 'darwin-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test'
Expand Down Expand Up @@ -178,16 +178,16 @@ jobs:
uses: actions/checkout@v4
with:
repository: xpack-dev-tools/xbb-helper-xpack
path: xpacks/@xpack-dev-tools/xbb-helper
path: ./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 scripts/test.sh --version ${{ github.event.inputs.version }} --base-url pre-release
run: bash ./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/darwin-x64/artefacts/tests-report-*.md
path: ${{ github.workspace }}/./build/darwin-x64/artefacts/tests-report-*.md
overwrite: true
18 changes: 9 additions & 9 deletions .github/workflows/build-linux-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ jobs:
- name: 'Install project dependencies'
timeout-minutes: 1440
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .

- name: 'Build linux-arm binaries'
timeout-minutes: 1440
run: |
xpm install --config linux-arm --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
xpm run build --config linux-arm
xpm install --config linux-arm --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .
xpm run build --config linux-arm -C .
linux-arm-upload:
name: 'linux-arm riscv-none-elf-gcc ${{ github.event.inputs.version }} upload'
Expand All @@ -137,15 +137,15 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: deploy-linux-arm
path: ${{ github.workspace }}/build/linux-arm/deploy/*
path: ${{ github.workspace }}/./build/linux-arm/deploy/*
overwrite: true

- name: 'Publish pre-release'
# https://github.com/ncipollo/release-action
uses: ncipollo/[email protected] # v1.13 for 18.04
with:
allowUpdates: true
artifacts: 'build/linux-arm/deploy/*'
artifacts: './build/linux-arm/deploy/*'
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
commit: 'master'
draft: false
Expand All @@ -162,7 +162,7 @@ jobs:

- name: 'Rename working area'
# For just in case absolute paths remain unprocessed.
run: echo mv -v build build-$(date -u +%Y%m%d-%H%M%S)
run: echo mv -v ./build ./build-$(date -u +%Y%m%d-%H%M%S)

linux-arm-test:
name: 'linux-arm riscv-none-elf-gcc@${{ github.event.inputs.version }} test'
Expand Down Expand Up @@ -194,19 +194,19 @@ jobs:
uses: actions/checkout@v4
with:
repository: xpack-dev-tools/xbb-helper-xpack
path: xpacks/@xpack-dev-tools/xbb-helper
path: ./xpacks/@xpack-dev-tools/xbb-helper
ref: ${{ github.event.inputs.helper-git-ref }}
fetch-depth: 3

- name: 'Run ${{ github.event.inputs.version }} docker test'
uses: docker://arm32v7/node:lts-slim # Currently based on debian:12-slim
with:
entrypoint: /bin/bash # /usr/bin/linux32
args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --base-url pre-release
args: /github/workspace/./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/linux-arm/artefacts/tests-report-*.md
path: ${{ github.workspace }}/./build/linux-arm/artefacts/tests-report-*.md
overwrite: true
18 changes: 9 additions & 9 deletions .github/workflows/build-linux-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ jobs:
- name: 'Install project dependencies'
timeout-minutes: 1440
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .

- name: 'Build linux-arm64 binaries'
timeout-minutes: 1440
run: |
xpm install --config linux-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
xpm run build --config linux-arm64
xpm install --config linux-arm64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .
xpm run build --config linux-arm64 -C .
linux-arm64-upload:
name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} upload'
Expand Down Expand Up @@ -138,15 +138,15 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: deploy-linux-arm64
path: ${{ github.workspace }}/build/linux-arm64/deploy/*
path: ${{ github.workspace }}/./build/linux-arm64/deploy/*
overwrite: true

- name: 'Publish pre-release'
# https://github.com/ncipollo/release-action
uses: ncipollo/[email protected] # v1.13 for 18.04
with:
allowUpdates: true
artifacts: 'build/linux-arm64/deploy/*'
artifacts: './build/linux-arm64/deploy/*'
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
commit: 'master'
draft: false
Expand All @@ -163,7 +163,7 @@ jobs:

- name: 'Rename working area'
# For just in case absolute paths remain unprocessed.
run: echo mv -v build build-$(date -u +%Y%m%d-%H%M%S)
run: echo mv -v ./build ./build-$(date -u +%Y%m%d-%H%M%S)

linux-arm64-test:
name: 'linux-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test'
Expand Down Expand Up @@ -195,19 +195,19 @@ jobs:
uses: actions/checkout@v4
with:
repository: xpack-dev-tools/xbb-helper-xpack
path: xpacks/@xpack-dev-tools/xbb-helper
path: ./xpacks/@xpack-dev-tools/xbb-helper
ref: ${{ github.event.inputs.helper-git-ref }}
fetch-depth: 3

- name: 'Run ${{ github.event.inputs.version }} docker test'
uses: docker://node:lts-slim # Currently based on debian:12-slim
with:
entrypoint: /bin/bash
args: /github/workspace/scripts/test.sh --image debian --version ${{ github.event.inputs.version }} --base-url pre-release
args: /github/workspace/./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/linux-arm64/artefacts/tests-report-*.md
path: ${{ github.workspace }}/./build/linux-arm64/artefacts/tests-report-*.md
overwrite: true
16 changes: 8 additions & 8 deletions .github/workflows/build-linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ jobs:
- name: 'Install project dependencies'
timeout-minutes: 1440
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .

- name: 'Build linux-x64 binaries'
timeout-minutes: 1440
run: |
xpm install --config linux-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
xpm run build --config linux-x64
xpm install --config linux-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .
xpm run build --config linux-x64 -C .
linux-x64-upload:
name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} upload'
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
uses: ncipollo/[email protected] # v1.13 for 18.04
with:
allowUpdates: true
artifacts: 'build/linux-x64/deploy/*'
artifacts: './build/linux-x64/deploy/*'
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
commit: 'master'
draft: false
Expand All @@ -160,7 +160,7 @@ jobs:

- name: 'Rename working area'
# For just in case absolute paths remain unprocessed.
run: echo mv -v build build-$(date -u +%Y%m%d-%H%M%S)
run: echo mv -v ./build ./build-$(date -u +%Y%m%d-%H%M%S)

linux-x64-test:
name: 'linux-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test'
Expand All @@ -186,16 +186,16 @@ jobs:
uses: actions/checkout@v4
with:
repository: xpack-dev-tools/xbb-helper-xpack
path: xpacks/@xpack-dev-tools/xbb-helper
path: ./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 scripts/test.sh --image github-actions-ubuntu-latest --version ${{ github.event.inputs.version }} --base-url pre-release
run: bash ./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/linux-x64/artefacts/tests-report-*.md
path: ${{ github.workspace }}/./build/linux-x64/artefacts/tests-report-*.md
overwrite: true
18 changes: 9 additions & 9 deletions .github/workflows/build-win32-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ jobs:
- name: 'Install project dependencies'
timeout-minutes: 1440
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .

- name: 'Build win32-x64 binaries'
timeout-minutes: 1440
run: |
xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}
xpm run build --config win32-x64
xpm install --config win32-x64 --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }} -C .
xpm run build --config win32-x64 -C .
win32-x64-upload:
name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} upload'
Expand All @@ -137,15 +137,15 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: deploy-win32-x64
path: ${{ github.workspace }}/build/win32-x64/deploy/*
path: ${{ github.workspace }}/./build/win32-x64/deploy/*
overwrite: true

- name: 'Publish pre-release'
# https://github.com/ncipollo/release-action
uses: ncipollo/[email protected] # v1.13 for 18.04
with:
allowUpdates: true
artifacts: 'build/win32-x64/deploy/*'
artifacts: './build/win32-x64/deploy/*'
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
commit: 'master'
draft: false
Expand All @@ -162,7 +162,7 @@ jobs:

- name: 'Rename working area'
# For just in case absolute paths remain unprocessed.
run: echo mv -v build build-$(date -u +%Y%m%d-%H%M%S)
run: echo mv -v ./build ./build-$(date -u +%Y%m%d-%H%M%S)

win32-x64-test:
name: 'win32-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test'
Expand Down Expand Up @@ -193,16 +193,16 @@ jobs:
uses: actions/checkout@v4
with:
repository: xpack-dev-tools/xbb-helper-xpack
path: xpacks/@xpack-dev-tools/xbb-helper
path: ./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 scripts/test.sh --version ${{ github.event.inputs.version }} --base-url pre-release
run: bash ./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/win32-x64/artefacts/tests-report-*.md
path: ${{ github.workspace }}/./build/win32-x64/artefacts/tests-report-*.md
overwrite: true
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ jobs:
uses: actions/checkout@v4
with:
repository: xpack-dev-tools/xbb-helper-xpack
path: xpacks/@xpack-dev-tools/xbb-helper
path: ./xpacks/@xpack-dev-tools/xbb-helper
ref: ${{ github.event.inputs.helper-git-ref }}
fetch-depth: 3

- name: 'Create body'
run: |
npm install
npm run liquidjs --silent -- --context '{ "XBB_RELEASE_VERSION": "${{ github.event.inputs.version }}" }' --template @scripts/templates/body-github-release-liquid.md >.github/workflows/body-github-release.md
npm run liquidjs --silent -- --context '{ "XBB_RELEASE_VERSION": "${{ github.event.inputs.version }}" }' --template @./scripts/templates/body-github-release-liquid.md >.github/workflows/body-github-release.md
cat .github/workflows/body-github-release.md
- name: 'Publish release'
Expand Down
Loading

0 comments on commit 6471c40

Please sign in to comment.