forked from xpack-dev-tools/windows-build-tools-xpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
101 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters