Fix date parsing error for EC firmwares released before 10 AM #194
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
name: Build Program | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- "**.cs" | |
- "**.csproj" | |
- "**.resx" | |
- "**build.yml" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
config: [Debug, Release] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Get short commit hash | |
uses: benjlevesque/[email protected] | |
with: | |
variable_name: sha_short | |
- name: Setup MSBuild path | |
uses: microsoft/setup-msbuild@v2 | |
- name: Setup NuGet | |
uses: nuget/setup-nuget@v2 | |
- name: Restore cached NuGet packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Restore solution (including NuGet packages for solution) | |
run: msbuild.exe /t:restore /p:configuration="${{ matrix.config }}" /p:RestoreLockedMode=true | |
- name: Build solution | |
run: msbuild.exe YAMDCC.sln /nologo /nr:false /p:DeployOnBuild=true /p:platform="Any CPU" /p:configuration="${{ matrix.config }}" | |
- name: Copy fan configs to build path | |
run: mkdir YAMDCC.ConfigEditor\bin\${{ matrix.config }}\net48\Configs && copy Configs\* YAMDCC.ConfigEditor\bin\${{ matrix.config }}\net48\Configs | |
- name: Copy LICENSE to build path | |
run: copy LICENSE.md YAMDCC.ConfigEditor\bin\${{ matrix.config }}\net48 | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "YAMDCC-${{ github.ref_name }}-${{ env.sha_short }}-${{ matrix.config }}" | |
path: "./YAMDCC.ConfigEditor/bin/${{ matrix.config }}/net48/" | |
compression-level: 9 |