Skip to content

Merge branch 'master' of https://github.com/rcmaehl/NotCPUCores #105

Merge branch 'master' of https://github.com/rcmaehl/NotCPUCores

Merge branch 'master' of https://github.com/rcmaehl/NotCPUCores #105

Workflow file for this run

name: ncc
on:
push:
paths-ignore:
- '.github/**'
- '!.github/workflows/**'
- '*.md'
- 'GUI_Concepts/**'
- 'Lang/**'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache tools
uses: actions/cache@v2
id: cache
with:
path: |
autoit-v3-setup.exe
SciTE4AutoIt3.exe
C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper
key: v2
- name: Download tools
if: steps.cache.outputs.cache-hit != 'true'
run: |
curl -sSfL https://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe -o autoit-v3-setup.exe `
-sSfL https://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/SciTE4AutoIt3.exe -o SciTE4AutoIt3.exe `
-sSfLO https://www.autoitscript.com/autoit3/scite/download/Au3Stripper.zip
Expand-Archive Au3Stripper.zip "${env:ProgramFiles(x86)}\AutoIt3\SciTE\Au3Stripper"
- name: Install tools
run: |
Start-Process autoit-v3-setup.exe -ArgumentList /S -NoNewWindow -Wait
Start-Process SciTE4AutoIt3.exe -ArgumentList /S -NoNewWindow -Wait
- name: Compile
run: |
Start-Process "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in NotCPUCores.au3" -NoNewWindow -Wait
sha256sum -b NotCPUCores*.exe > checksums.sha256
- uses: actions/upload-artifact@v2
with:
name: NCC
path: |
NotCPUCores*.exe
checksums.sha256
if-no-files-found: error
- name: Zip package
if: startsWith(github.ref, 'refs/tags/')
run: 7z a NotCPUCores.zip NotCPUCores*.exe checksums.sha256
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
NotCPUCores*.exe
NotCPUCores.zip
checksums.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}