Skip to content

Commit

Permalink
Testing configuration variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Oct 17, 2021
1 parent 9971b53 commit d9492c3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
#TODO:
env:
buildConfiguration: Release
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -36,23 +39,26 @@ jobs:
- name: Install dependencies
run: |
dotnet restore il2c.sln
dotnet restore samples/Calculator/Calculator.Core/Calculator.csproj
# dotnet restore samples/GettingStartedIL2C/GettingStartedIL2C.sln
# dotnet restore samples/Calculator/Calculator.sln
- name: Build runtime library
run: bash build-runtime.sh $(buildConfiguration)
run: bash build-runtime.sh ${{env.buildConfiguration}}
- name: Build il2c
run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform="Any CPU" il2c.sln
run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform="Any CPU" il2c.sln
# - name: Build GettingStartedIL2C-x86
# run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x86 samples/GettingStartedIL2C/GettingStartedIL2C.sln
# run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x86 samples/GettingStartedIL2C/GettingStartedIL2C.sln
# - name: Build GettingStartedIL2C-x64
# run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x64 samples/GettingStartedIL2C/GettingStartedIL2C.sln
# run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x64 samples/GettingStartedIL2C/GettingStartedIL2C.sln
- name: Build Calculator.Core
run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x64 samples/Calculator/Calculator.Core/Calculator.Core.csproj
# - name: Build Calculator-x86
# run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x86 samples/Calculator/Calculator.sln
# run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x86 samples/Calculator/Calculator.sln
# - name: Build Calculator-x64
# run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x64 samples/Calculator/Calculator.sln
# run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x64 samples/Calculator/Calculator.sln
- name: Build Calculator-CMake-mingw32
run: bash build.sh $(buildConfiguration)
working-directory: "samples/Calculator/Calculator.CMake"
run: bash build.sh ${{env.buildConfiguration}}
working-directory: samples/Calculator/Calculator.CMake
- name: Test il2c
run: dotnet test --no-restore --verbosity normal --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x64 -p:CITest=True "tests/IL2C.Core.Test.Fixture/bin/$(buildConfiguration)/**/IL2C.Core.Test.Fixture.dll"
run: dotnet test --no-restore --verbosity normal --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x64 -p:CITest=True tests/IL2C.Core.Test.Fixture/bin/${{env.buildConfiguration}}/**/IL2C.Core.Test.Fixture.dll
timeout-minutes: 10
25 changes: 14 additions & 11 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
jobs:
build:
runs-on: windows-latest
#TODO:
env:
buildConfiguration: Release
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -37,25 +40,25 @@ jobs:
- name: Install dependencies
run: |
dotnet restore il2c.sln
dotnet restore samples/GettingStartedIL2C/GettingStartedIL2C.sln
dotnet restore samples/Calculator/Calculator.sln
dotnet restore samples\GettingStartedIL2C\GettingStartedIL2C.sln
dotnet restore samples\Calculator\Calculator.sln
- name: Build runtime library
run: build-runtime.bat $(buildConfiguration)
run: build-runtime.bat ${{env.buildConfiguration}}
shell: cmd
- name: Build il2c
run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform="Any CPU" il2c.sln
run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform="Any CPU" il2c.sln
- name: Build GettingStartedIL2C-x86
run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x86 samples/GettingStartedIL2C/GettingStartedIL2C.sln
run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x86 samples\GettingStartedIL2C\GettingStartedIL2C.sln
- name: Build GettingStartedIL2C-x64
run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x64 samples/GettingStartedIL2C/GettingStartedIL2C.sln
run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x64 samples\GettingStartedIL2C\GettingStartedIL2C.sln
- name: Build Calculator-x86
run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x86 samples/Calculator/Calculator.sln
run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x86 samples\Calculator\Calculator.sln
- name: Build Calculator-x64
run: dotnet build --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x64 samples/Calculator/Calculator.sln
run: dotnet build --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x64 samples\Calculator\Calculator.sln
- name: Build Calculator-CMake-mingw32
run: build.bat $(buildConfiguration)
run: build.bat ${{env.buildConfiguration}}
shell: cmd
working-directory: "samples/Calculator/Calculator.CMake"
working-directory: samples\Calculator\Calculator.CMake
- name: Test il2c
run: dotnet test --no-restore --verbosity normal --configuration $(buildConfiguration) --no-restore -p:BuildIdentifier="$(GITHUB_RUN_NUMBER)" -p:Platform=x64 -p:CITest=True "tests/IL2C.Core.Test.Fixture/bin/$(buildConfiguration)/**/IL2C.Core.Test.Fixture.dll"
run: dotnet test --no-restore --verbosity normal --configuration ${{env.buildConfiguration}} --no-restore -p:BuildIdentifier=$GITHUB_RUN_NUMBER -p:Platform=x64 -p:CITest=True tests\IL2C.Core.Test.Fixture\bin\${{env.buildConfiguration}}\**\IL2C.Core.Test.Fixture.dll
timeout-minutes: 10
2 changes: 2 additions & 0 deletions il2c.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D105E6CD-626A-4C04-8AF6-0AA34A4E9CF4}"
ProjectSection(SolutionItems) = preProject
.gitignore = .gitignore
.github\workflows\build-linux.yaml = .github\workflows\build-linux.yaml
build-runtime.bat = build-runtime.bat
build-runtime.sh = build-runtime.sh
.github\workflows\build-windows.yaml = .github\workflows\build-windows.yaml
il2c.sln.licenseheader = il2c.sln.licenseheader
init-tools.bat = init-tools.bat
init-tools.sh = init-tools.sh
Expand Down

0 comments on commit d9492c3

Please sign in to comment.