Skip to content

Commit

Permalink
编译优化
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Feb 5, 2024
1 parent 5d9a9bf commit 294c676
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ jobs:
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- name: Set Version
run: powershell -Command "(gc $env:GITHUB_WORKSPACE\AutoLinker.h) -replace '0.0.0', '$env:GITHUB_REF_NAME' | Out-File $env:GITHUB_WORKSPACE\AutoLinker.h"

run: (Get-Content ".\AutoLinker.h") -replace "0\.0\.0", "$env:GITHUB_REF_NAME" | Set-Content ".\AutoLinker.h"
shell: pwsh

- name: Set Build
run: powershell -Command "(gc $env:GITHUB_WORKSPACE\AutoLinker.h) -replace '1000000', '$env:GITHUB_RUN_NUMBER' | Out-File $env:GITHUB_WORKSPACE\AutoLinker.h"

run: (Get-Content ".\AutoLinker.h") -replace "1000000", "$env:GITHUB_RUN_NUMBER" | Set-Content ".\AutoLinker.h"
shell: pwsh

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
Expand Down
1 change: 0 additions & 1 deletion AutoLinker.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#ifndef __ELIBFNE__
#define __ELIBFNE__


#include <windows.h>
#include <tchar.h>
#include <cassert>
Expand Down

0 comments on commit 294c676

Please sign in to comment.