Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit d4fc0fa

Browse files
committed
add separate build-xbb?.yml
1 parent 8662bd1 commit d4fc0fa

File tree

4 files changed

+225
-0
lines changed

4 files changed

+225
-0
lines changed

.github/workflows/build-xbba.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# -----------------------------------------------------------------------------
2+
# DO NOT EDIT! Generated from scripts/helper/templates/*.
3+
#
4+
# This file is part of the xPack distribution.
5+
# (https://xpack.github.io)
6+
# Copyright (c) 2021 Liviu Ionescu.
7+
#
8+
# Permission to use, copy, modify, and/or distribute this software
9+
# for any purpose is hereby granted, under the terms of the MIT license.
10+
# -----------------------------------------------------------------------------
11+
12+
# https://help.github.com/en/actions
13+
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
14+
15+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
16+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
17+
# https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event
18+
19+
# -----------------------------------------------------------------------------
20+
21+
22+
name: 'Build xPack GNU RISC-V Embedded GCC xbba'
23+
24+
on:
25+
workflow_dispatch:
26+
inputs:
27+
version:
28+
description: 'The semver of the release'
29+
required: false
30+
default: 'current'
31+
32+
jobs:
33+
34+
linux-arm64:
35+
name: 'Arm Linux GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} build'
36+
timeout-minutes: 2880 # 2 days
37+
runs-on: [self-hosted, Linux, ARM64]
38+
steps:
39+
- name: 'Checkout'
40+
uses: actions/checkout@v2
41+
with:
42+
fetch-depth: 3
43+
submodules: true
44+
45+
- name: 'Clean working area'
46+
run: rm -rf ~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}*
47+
48+
- name: 'Build Linux arm64 binary'
49+
timeout-minutes: 1440
50+
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --arm64
51+
52+
- name: 'Publish pre-release'
53+
# https://github.com/ncipollo/release-action
54+
uses: ncipollo/release-action@v1
55+
with:
56+
allowUpdates: true
57+
artifacts: '~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}/deploy/*'
58+
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
59+
commit: 'master'
60+
draft: false
61+
name: 'Test binaries'
62+
omitBodyDuringUpdate: true
63+
omitNameDuringUpdate: true
64+
owner: 'xpack-dev-tools'
65+
prerelease: true
66+
replacesArtifacts: true
67+
repo: 'pre-releases'
68+
tag: 'test'
69+
token: ${{ secrets.PUBLISH_TOKEN }}
70+

.github/workflows/build-xbbi.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# -----------------------------------------------------------------------------
2+
# DO NOT EDIT! Generated from scripts/helper/templates/*.
3+
#
4+
# This file is part of the xPack distribution.
5+
# (https://xpack.github.io)
6+
# Copyright (c) 2021 Liviu Ionescu.
7+
#
8+
# Permission to use, copy, modify, and/or distribute this software
9+
# for any purpose is hereby granted, under the terms of the MIT license.
10+
# -----------------------------------------------------------------------------
11+
12+
# https://help.github.com/en/actions
13+
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
14+
15+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
16+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
17+
# https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event
18+
19+
# -----------------------------------------------------------------------------
20+
21+
22+
name: 'Build xPack GNU RISC-V Embedded GCC xbbi'
23+
24+
on:
25+
workflow_dispatch:
26+
inputs:
27+
version:
28+
description: 'The semver of the release'
29+
required: false
30+
default: 'current'
31+
32+
jobs:
33+
34+
linux-x64:
35+
name: 'Intel Linux GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} build'
36+
timeout-minutes: 5760 # 4 days
37+
runs-on: [self-hosted, Linux, X64]
38+
steps:
39+
- name: 'Checkout'
40+
uses: actions/checkout@v2
41+
with:
42+
fetch-depth: 3
43+
submodules: true
44+
45+
- name: 'Clean working area'
46+
run: rm -rf ~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}*
47+
48+
- name: 'Build Linux x64 binary'
49+
timeout-minutes: 1440
50+
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --linux64
51+
52+
- name: 'Build Linux ia32 binary'
53+
timeout-minutes: 1440
54+
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --linux32
55+
56+
- name: 'Build Windows x64 binary'
57+
timeout-minutes: 1440
58+
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --win64
59+
60+
- name: 'Build Windows ia32 binary'
61+
timeout-minutes: 1440
62+
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --win32
63+
64+
- name: 'Publish pre-release'
65+
# https://github.com/ncipollo/release-action
66+
uses: ncipollo/release-action@v1
67+
with:
68+
allowUpdates: true
69+
artifacts: '~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}/deploy/*'
70+
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
71+
commit: 'master'
72+
draft: false
73+
name: 'Test binaries'
74+
omitBodyDuringUpdate: true
75+
omitNameDuringUpdate: true
76+
owner: 'xpack-dev-tools'
77+
prerelease: true
78+
replacesArtifacts: true
79+
repo: 'pre-releases'
80+
tag: 'test'
81+
token: ${{ secrets.PUBLISH_TOKEN }}
82+

.github/workflows/build-xbbm.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# -----------------------------------------------------------------------------
2+
# DO NOT EDIT! Generated from scripts/helper/templates/*.
3+
#
4+
# This file is part of the xPack distribution.
5+
# (https://xpack.github.io)
6+
# Copyright (c) 2021 Liviu Ionescu.
7+
#
8+
# Permission to use, copy, modify, and/or distribute this software
9+
# for any purpose is hereby granted, under the terms of the MIT license.
10+
# -----------------------------------------------------------------------------
11+
12+
# https://help.github.com/en/actions
13+
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
14+
15+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
16+
# https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#workflow_dispatch
17+
# https://docs.github.com/en/rest/reference/actions#create-a-workflow-dispatch-event
18+
19+
# -----------------------------------------------------------------------------
20+
21+
22+
name: 'Build xPack GNU RISC-V Embedded GCC xbbm'
23+
24+
on:
25+
workflow_dispatch:
26+
inputs:
27+
version:
28+
description: 'The semver of the release'
29+
required: false
30+
default: 'current'
31+
32+
jobs:
33+
34+
macos-x64:
35+
name: 'Intel macOS GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} build'
36+
timeout-minutes: 2880 # 2 days
37+
runs-on: [self-hosted, macOS, X64]
38+
steps:
39+
- name: 'Checkout'
40+
uses: actions/checkout@v2
41+
with:
42+
fetch-depth: 3
43+
submodules: true
44+
45+
- name: 'Clean working area'
46+
run: rm -rf ~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}*
47+
48+
- name: 'Build macOS x64 binary'
49+
timeout-minutes: 1440
50+
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --osx
51+
52+
- name: 'Publish pre-release'
53+
# https://github.com/ncipollo/release-action
54+
uses: ncipollo/release-action@v1
55+
with:
56+
allowUpdates: true
57+
artifacts: '~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}/deploy/*'
58+
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
59+
commit: 'master'
60+
draft: false
61+
name: 'Test binaries'
62+
omitBodyDuringUpdate: true
63+
omitNameDuringUpdate: true
64+
owner: 'xpack-dev-tools'
65+
prerelease: true
66+
replacesArtifacts: true
67+
repo: 'pre-releases'
68+
tag: 'test'
69+
token: ${{ secrets.PUBLISH_TOKEN }}
70+

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@
107107
"mkdir -p .github/workflows/",
108108
"cp scripts/helper/templates/body-github-pre-releases-test.md .github/workflows/",
109109
"cat scripts/helper/templates/build-liquid.yml | {{ properties.LIQUIDJS }} > .github/workflows/build.yml",
110+
"cat scripts/helper/templates/build-xbbi-liquid.yml | {{ properties.LIQUIDJS }} > .github/workflows/build-xbbi.yml",
111+
"cat scripts/helper/templates/build-xbba-liquid.yml | {{ properties.LIQUIDJS }} > .github/workflows/build-xbba.yml",
112+
"cat scripts/helper/templates/build-xbbm-liquid.yml | {{ properties.LIQUIDJS }} > .github/workflows/build-xbbm.yml",
110113
"cat scripts/helper/templates/test-prime-liquid.yml | {{ properties.LIQUIDJS }} > .github/workflows/test-prime.yml",
111114
"cat scripts/helper/templates/test-docker-linux-intel-liquid.yml | {{ properties.LIQUIDJS }} > .github/workflows/test-docker-linux-intel.yml",
112115
"cat scripts/helper/templates/test-docker-linux-arm-liquid.yml | {{ properties.LIQUIDJS }} > .github/workflows/test-docker-linux-arm.yml",

0 commit comments

Comments
 (0)