Skip to content

Commit

Permalink
Merge commit '1f31f3794db958b67d1b4a8482b17ae1d217148d' into xpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Jul 23, 2024
2 parents 11cc781 + 1f31f37 commit c4be153
Show file tree
Hide file tree
Showing 26 changed files with 1,716 additions and 1,146 deletions.
473 changes: 0 additions & 473 deletions .github/workflows/build-all.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
# https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event

# https://github.com/actions/checkout
# https://github.com/actions/upload-artifact
# https://github.com/actions/download-artifact

# -----------------------------------------------------------------------------


name: 'Build xPack GNU RISC-V Embedded GCC xbbma'
name: 'Build xPack GNU RISC-V Embedded GCC darwin-arm64'

on:
workflow_dispatch:
Expand Down Expand Up @@ -52,29 +56,41 @@ on:
required: false
type: string
default: ''
helper-git-ref:
description: 'The helper branch, tag or SHA to checkout'
required: false
default: 'xpack-develop'

jobs:

macos-arm64:
name: 'macOS Arm - riscv-none-elf-gcc ${{ github.event.inputs.version }} build'
darwin-arm64-build:
name: 'darwin-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build'
timeout-minutes: 2880 # 2 days

runs-on: [self-hosted, macos, apple]

steps:
- name: 'Environment'
- name: 'Show environment'
run: |
uname -a
sw_vers
echo "whoami: $(whoami)"
ls -lA /Library/Developer/CommandLineTools/SDKs || true
ls -lA /Applications
xcode-select --print-path
xcodebuild -version || true
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true
ls -l /Library/Developer/CommandLineTools/usr/include || true
echo "pwd: $(pwd)"
echo "whoami: $(whoami)"
echo "node: $(node --version)"
echo "npm: $(npm --version)"
ls -lLA
env | sort | egrep '^[^ \t]+='
env | sort | grep -E '^[^ \t]+='
- name: 'Clean working area'
run: rm -rf * .git*
- name: 'Clean working area' # Mandatory for self-hosted runners.
run: |
chmod -Rf a+w * || true
rm -rf * .git*
- name: 'Checkout project'
uses: actions/checkout@v1 # v1 for old Git
Expand All @@ -91,15 +107,22 @@ jobs:
timeout-minutes: 1440
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}

- name: 'Build macOS arm64 binary'
- 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
- name: Upload platform artefacts
uses: actions/upload-artifact@v4
with:
name: deploy-darwin-arm64
path: ${{ github.workspace }}/build/darwin-arm64/deploy/*
overwrite: true

- name: 'Publish pre-release'
# https://github.com/ncipollo/release-action
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.14.0
with:
allowUpdates: true
artifacts: 'build/darwin-arm64/deploy/*'
Expand All @@ -120,3 +143,50 @@ 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)

darwin-arm64-test:
name: 'darwin-arm64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test'
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
runs-on: macos-14
needs: [darwin-arm64-build]

steps:
- name: 'Show environment'
run: |
uname -a
sw_vers
ls -lA /Library/Developer/CommandLineTools/SDKs || true
ls -lA /Applications
sudo xcode-select --switch /Applications/Xcode_15.4.app
xcode-select --print-path
xcodebuild -version || true
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true
clang++ -v
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: 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

- 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
overwrite: true
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
# https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event

# https://github.com/actions/checkout
# https://github.com/actions/upload-artifact
# https://github.com/actions/download-artifact

# -----------------------------------------------------------------------------


name: 'Build xPack GNU RISC-V Embedded GCC xbbmi'
name: 'Build xPack GNU RISC-V Embedded GCC darwin-x64'

on:
workflow_dispatch:
Expand Down Expand Up @@ -52,32 +56,44 @@ on:
required: false
type: string
default: ''
helper-git-ref:
description: 'The helper branch, tag or SHA to checkout'
required: false
default: 'xpack-develop'

jobs:

macos-x64:
name: 'macOS Intel - riscv-none-elf-gcc ${{ github.event.inputs.version }} build'
darwin-x64-build:
name: 'darwin-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} build'
timeout-minutes: 2880 # 2 days

runs-on: [self-hosted, macos, intel]

steps:
- name: 'Environment'
- name: 'Show environment'
run: |
uname -a
sw_vers
echo "whoami: $(whoami)"
ls -lA /Library/Developer/CommandLineTools/SDKs || true
ls -lA /Applications
xcode-select --print-path
xcodebuild -version || true
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true
ls -l /Library/Developer/CommandLineTools/usr/include || true
echo "pwd: $(pwd)"
echo "whoami: $(whoami)"
echo "node: $(node --version)"
echo "npm: $(npm --version)"
ls -lLA
env | sort | egrep '^[^ \t]+='
env | sort | grep -E '^[^ \t]+='
- name: 'Clean working area'
run: rm -rf * .git*
- name: 'Clean working area' # Mandatory for self-hosted runners.
run: |
chmod -Rf a+w * || true
rm -rf * .git*
- name: 'Checkout project'
uses: actions/checkout@v1
uses: actions/checkout@v1 # v1 for old Git
with:
fetch-depth: 3

Expand All @@ -91,15 +107,22 @@ jobs:
timeout-minutes: 1440
run: xpm install --loglevel ${{ github.event.inputs.xpm_install_loglevel }} ${{ github.event.inputs.xpm_install_options }}

- name: 'Build macOS x64 binary'
- 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
- name: Upload platform artefacts
uses: actions/upload-artifact@v4
with:
name: deploy-darwin-x64
path: ${{ github.workspace }}/build/darwin-x64/deploy/*
overwrite: true

- name: 'Publish pre-release'
# https://github.com/ncipollo/release-action
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.14.0
with:
allowUpdates: true
artifacts: 'build/darwin-x64/deploy/*'
Expand All @@ -120,3 +143,50 @@ 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)

darwin-x64-test:
name: 'darwin-x64 riscv-none-elf-gcc ${{ github.event.inputs.version }} test'
# https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md
runs-on: macos-12
needs: [darwin-x64-build]

steps:
- name: 'Show environment'
run: |
uname -a
sw_vers
ls -lA /Library/Developer/CommandLineTools/SDKs || true
ls -lA /Applications
sudo xcode-select --switch /Applications/Xcode_14.2.app
xcode-select --print-path
xcodebuild -version || true
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables || true
clang++ -v
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: 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

- 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
overwrite: true
Loading

0 comments on commit c4be153

Please sign in to comment.