Skip to content

Commit

Permalink
re-generate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Dec 6, 2021
1 parent 02eb8ac commit f5f1a02
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 7 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# -----------------------------------------------------------------------------
# DO NOT EDIT! Generated from scripts/helper/templates/*.
#
# This file is part of the xPack distribution.
# (https://xpack.github.io)
# Copyright (c) 2021 Liviu Ionescu.
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
# -----------------------------------------------------------------------------

# https://help.github.com/en/actions
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners

# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
# 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

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


name: 'Build xPack Windows Build Tools'

on:
workflow_dispatch:
inputs:
version:
description: 'The semver of the release'
required: false
default: 'current'

jobs:

linux-x64:
name: 'Linux Intel - Windows Build Tools ${{ github.event.inputs.version }} build'
timeout-minutes: 5760 # 4 days
runs-on: [self-hosted, linux, x64]
steps:
- name: 'Machine'
run: uname -a

- name: 'Checkout'
uses: actions/checkout@v2
with:
fetch-depth: 3
submodules: true

- name: 'Clean working area'
run: rm -rf ~/Work/windows-build-tools-${{ github.event.inputs.version }}*

- name: 'Build Windows x64 binary'
timeout-minutes: 1440
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --win64

- name: 'Build Windows ia32 binary'
timeout-minutes: 1440
run: bash scripts/helper/build.sh --version "${{ github.event.inputs.version }}" --win32

- name: 'Publish pre-release'
# https://github.com/ncipollo/release-action
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: '~/Work/windows-build-tools-${{ github.event.inputs.version }}/deploy/*'
bodyFile: '.github/workflows/body-github-pre-releases-test.md'
commit: 'master'
draft: false
name: 'Test binaries'
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
owner: 'xpack-dev-tools'
prerelease: true
replacesArtifacts: true
repo: 'pre-releases'
tag: 'test'
token: ${{ secrets.PUBLISH_TOKEN }}








10 changes: 7 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# (https://xpack.github.io)
# Copyright (c) 2021 Liviu Ionescu.
#
# Permission to use, copy, modify, and/or distribute this software
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
# -----------------------------------------------------------------------------

Expand All @@ -32,9 +32,11 @@ on:
jobs:

linux-x64:
name: 'Intel Linux Windows Build Tools ${{ github.event.inputs.version }} publish release'
runs-on: [self-hosted, Linux, X64]
name: 'Linux Intel - Windows Build Tools ${{ github.event.inputs.version }} publish release'
runs-on: [self-hosted, linux, x64]
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -70,3 +72,5 @@ jobs:





10 changes: 7 additions & 3 deletions .github/workflows/test-prime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# (https://xpack.github.io)
# Copyright (c) 2021 Liviu Ionescu.
#
# Permission to use, copy, modify, and/or distribute this software
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
# -----------------------------------------------------------------------------

Expand Down Expand Up @@ -37,9 +37,11 @@ on:
jobs:

windows-x64:
name: 'x64 Windows Windows Build Tools ${{ github.event.inputs.version }} test'
name: 'Windows x64 Windows Build Tools ${{ github.event.inputs.version }} test'
runs-on: windows-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
Expand All @@ -50,9 +52,11 @@ jobs:


windows-ia32:
name: 'ia32 Windows Windows Build Tools ${{ github.event.inputs.version }} test'
name: 'Windows ia32 Windows Build Tools ${{ github.event.inputs.version }} test'
runs-on: windows-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-xpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# (https://xpack.github.io)
# Copyright (c) 2021 Liviu Ionescu.
#
# Permission to use, copy, modify, and/or distribute this software
# Permission to use, copy, modify, and/or distribute this software
# for any purpose is hereby granted, under the terms of the MIT license.
# -----------------------------------------------------------------------------

Expand Down Expand Up @@ -36,6 +36,8 @@ jobs:
name: 'Windows 64-bit Windows Build Tools@${{ github.event.inputs.version }} test'
runs-on: windows-latest
steps:
- name: 'Machine'
run: uname -a
- name: 'Checkout'
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit f5f1a02

Please sign in to comment.