CI: sync GHA config from MINGW-packages
This commit is contained in:
parent
581407da5b
commit
c1364459c9
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -21,9 +21,13 @@ jobs:
|
|||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get CPU Name
|
- name: Gather Facts
|
||||||
|
id: facts
|
||||||
run : |
|
run : |
|
||||||
|
Get-PSDrive -PSProvider FileSystem | Format-Table -AutoSize -Wrap
|
||||||
Get-CIMInstance -Class Win32_Processor | Select-Object -Property Name
|
Get-CIMInstance -Class Win32_Processor | Select-Object -Property Name
|
||||||
|
$BUILD_DRIVE = Split-Path $env:GITHUB_WORKSPACE -Qualifier
|
||||||
|
echo "drive=$BUILD_DRIVE" >> $env:GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Configure Pagefile
|
- name: Configure Pagefile
|
||||||
if: ${{ matrix.msystem != 'CLANGARM64' }}
|
if: ${{ matrix.msystem != 'CLANGARM64' }}
|
||||||
@ -33,6 +37,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
minimum-size: 4GB
|
minimum-size: 4GB
|
||||||
maximum-size: 16GB
|
maximum-size: 16GB
|
||||||
|
# Needs to be C:, see https://github.com/al-cheb/configure-pagefile-action/issues/18
|
||||||
disk-root: "C:"
|
disk-root: "C:"
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -66,13 +71,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Move Checkout
|
- name: Move Checkout
|
||||||
run: |
|
run: |
|
||||||
If (Test-Path "C:\_") { rm -r -fo "C:\_" }
|
$path = "${{ steps.facts.outputs.drive }}\_"
|
||||||
Copy-Item -Path ".\temp" -Destination "C:\_" -Recurse
|
If (Test-Path "$path") { rm -r -fo "$path" }
|
||||||
|
Move-Item -Path ".\temp" -Destination "$path"
|
||||||
|
|
||||||
- name: CI-Build
|
- name: CI-Build
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
cd /C/_
|
cd "$(cygpath '${{ steps.facts.outputs.drive }}/_')"
|
||||||
./.ci/ci-build.sh
|
./.ci/ci-build.sh
|
||||||
|
|
||||||
- name: "Upload binaries"
|
- name: "Upload binaries"
|
||||||
@ -80,7 +86,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.msystem }}-packages
|
name: ${{ matrix.msystem }}-packages
|
||||||
path: C:/_/artifacts/*.pkg.tar.*
|
path: ${{ steps.facts.outputs.drive }}/_/artifacts/*.pkg.tar.*
|
||||||
|
|
||||||
package-grokker:
|
package-grokker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user