Skip to content

Commit

Permalink
Add Tools build support
Browse files Browse the repository at this point in the history
  • Loading branch information
vinxue committed Nov 13, 2024
1 parent 35aeb69 commit 2e2ae28
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ env:
SOLUTION_FILE_PATH_IMGCONVERTER: ImgConverter
SOLUTION_FILE_PATH_STOPWATCH: StopWatch
SOLUTION_FILE_PATH_IDCARD: IDCard
TOOLS_C_PATH: Tools/C

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
Expand All @@ -33,7 +34,7 @@ permissions:
contents: read

jobs:
build:
build-windows:
runs-on: windows-2019

steps:
Expand All @@ -42,7 +43,7 @@ jobs:
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2

- name: Build
- name: Windows Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
Expand All @@ -66,3 +67,21 @@ jobs:
${{env.SOLUTION_FILE_PATH_TIMER}}/Release/*.exe
${{env.SOLUTION_FILE_PATH_IMGCONVERTER}}/Release/*.exe
${{env.SOLUTION_FILE_PATH_STOPWATCH}}/Release/*.exe
build-linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Linux Build
run: |
gcc -o ${{env.TOOLS_C_PATH}}/Crc32/Crc32 ${{env.TOOLS_C_PATH}}/Crc32/Crc32.c
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: AppArtifact
path: |
${{env.TOOLS_C_PATH}}/Crc32/Crc32

0 comments on commit 2e2ae28

Please sign in to comment.