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

Commit f5d79a4

Browse files
committed
re-generate workflows
1 parent 33cf349 commit f5d79a4

File tree

1 file changed

+161
-0
lines changed

1 file changed

+161
-0
lines changed

.github/workflows/build-all.yml

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
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'
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+
83+
84+
85+
linux-arm64:
86+
name: 'Arm Linux GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} build'
87+
timeout-minutes: 2880 # 2 days
88+
runs-on: [self-hosted, Linux, ARM64]
89+
steps:
90+
- name: 'Checkout'
91+
uses: actions/checkout@v2
92+
with:
93+
fetch-depth: 3
94+
submodules: true
95+
96+
- name: 'Clean working area'
97+
run: rm -rf ~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}*
98+
99+
- name: 'Build Linux arm64 binary'
100+
timeout-minutes: 1440
101+
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --arm64
102+
103+
- name: 'Publish pre-release'
104+
# https://github.com/ncipollo/release-action
105+
uses: ncipollo/release-action@v1
106+
with:
107+
allowUpdates: true
108+
artifacts: '~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}/deploy/*'
109+
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
110+
commit: 'master'
111+
draft: false
112+
name: 'Test binaries'
113+
omitBodyDuringUpdate: true
114+
omitNameDuringUpdate: true
115+
owner: 'xpack-dev-tools'
116+
prerelease: true
117+
replacesArtifacts: true
118+
repo: 'pre-releases'
119+
tag: 'test'
120+
token: ${{ secrets.PUBLISH_TOKEN }}
121+
122+
123+
124+
macos-x64:
125+
name: 'Intel macOS GNU RISC-V Embedded GCC ${{ github.event.inputs.version }} build'
126+
timeout-minutes: 2880 # 2 days
127+
runs-on: [self-hosted, macOS, X64]
128+
steps:
129+
- name: 'Checkout'
130+
uses: actions/checkout@v2
131+
with:
132+
fetch-depth: 3
133+
submodules: true
134+
135+
- name: 'Clean working area'
136+
run: rm -rf ~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}*
137+
138+
- name: 'Build macOS x64 binary'
139+
timeout-minutes: 1440
140+
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --osx
141+
142+
- name: 'Publish pre-release'
143+
# https://github.com/ncipollo/release-action
144+
uses: ncipollo/release-action@v1
145+
with:
146+
allowUpdates: true
147+
artifacts: '~/Work/riscv-none-embed-gcc-${{ github.event.inputs.version }}/deploy/*'
148+
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
149+
commit: 'master'
150+
draft: false
151+
name: 'Test binaries'
152+
omitBodyDuringUpdate: true
153+
omitNameDuringUpdate: true
154+
owner: 'xpack-dev-tools'
155+
prerelease: true
156+
replacesArtifacts: true
157+
repo: 'pre-releases'
158+
tag: 'test'
159+
token: ${{ secrets.PUBLISH_TOKEN }}
160+
161+

0 commit comments

Comments
 (0)