Skip to content

Commit

Permalink
Update GitHub actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
CrendKing committed Mar 2, 2024
1 parent 0cc49b2 commit 37ba15f
Showing 1 changed file with 64 additions and 64 deletions.
128 changes: 64 additions & 64 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
name: CI

on:
push:
branches:
- master
- test
workflow_dispatch:

jobs:
prepare:
runs-on: windows-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- id: set-matrix
run: |
$matrixItems = New-Object System.Collections.ArrayList
$matrixItems.Add(@{
configuration = 'Debug'
platform = 'x64'
'output-dir' = 'x64'
})
$matrixItems.Add(@{
configuration = 'Debug'
platform = 'x86'
'output-dir' = 'Win32'
})
if ($env:GITHUB_REF -like 'refs/heads/master*') {
$matrixItems.Add(@{
configuration = 'Release'
platform = 'x64'
'output-dir' = 'x64'
})
$matrixItems.Add(@{
configuration = 'Release'
platform = 'x86'
'output-dir' = 'Win32'
})
}
Set-Content -Path $env:GITHUB_OUTPUT -Value "matrix=$(@{ include = $matrixItems } | ConvertTo-Json -Compress)"
build:
name: ${{ matrix.configuration }} ${{ matrix.platform }}
runs-on: windows-2022
needs: prepare
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
run: pwsh -File build.ps1 -configuration ${{ matrix.configuration }} -platform ${{ matrix.platform }}

- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.configuration }} ${{ matrix.platform }}
path: |
${{ matrix.output-dir }}/${{ matrix.configuration }}/*.ax
${{ matrix.output-dir }}/${{ matrix.configuration }}/*.pdb
if-no-files-found: error
name: CI

on:
push:
branches:
- master
- test
workflow_dispatch:

jobs:
prepare:
runs-on: windows-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- id: set-matrix
run: |
$matrixItems = New-Object System.Collections.ArrayList
$matrixItems.Add(@{
configuration = 'Debug'
platform = 'x64'
'output-dir' = 'x64'
})
$matrixItems.Add(@{
configuration = 'Debug'
platform = 'x86'
'output-dir' = 'Win32'
})
if ($env:GITHUB_REF -like 'refs/heads/master*') {
$matrixItems.Add(@{
configuration = 'Release'
platform = 'x64'
'output-dir' = 'x64'
})
$matrixItems.Add(@{
configuration = 'Release'
platform = 'x86'
'output-dir' = 'Win32'
})
}
Set-Content -Path $env:GITHUB_OUTPUT -Value "matrix=$(@{ include = $matrixItems } | ConvertTo-Json -Compress)"
build:
name: ${{ matrix.configuration }} ${{ matrix.platform }}
runs-on: windows-latest
needs: prepare
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
run: pwsh -File build.ps1 -configuration ${{ matrix.configuration }} -platform ${{ matrix.platform }}

- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.configuration }} ${{ matrix.platform }}
path: |
${{ matrix.output-dir }}/${{ matrix.configuration }}/*.ax
${{ matrix.output-dir }}/${{ matrix.configuration }}/*.pdb
if-no-files-found: error

3 comments on commit 37ba15f

@ssssssbbb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does SVP4 own a newer v1.47 which version number ends with "svp"? I get that from SVP4 updating.

@ssssssbbb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably know why after reading PR.

@CrendKing
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has absolutely nothing to do with SVP.

Please sign in to comment.