Skip to content

Commit

Permalink
Update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
sungaila committed Jul 3, 2024
1 parent 4ecb579 commit 5b42415
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,30 +244,30 @@ jobs:
uses: actions/checkout@main
with:
fetch-depth: 0
- name: aotconsole linux
- name: console linux
if: runner.os == 'Linux' && (success() || failure())
run: docker build -t aotconsole -f src/FrameworkTests/AotConsole/Dockerfiles/linux . && docker run --rm -t aotconsole
- name: aotconsole linux-chiseled
run: docker build -t console -f src/FrameworkTests/AotConsole/Dockerfiles/linux . && docker run --rm -t console
- name: console linux-chiseled
if: runner.os == 'Linux' && (success() || failure())
run: docker build -t aotconsole -f src/FrameworkTests/AotConsole/Dockerfiles/linux-chiseled . && docker run --rm -t aotconsole
- name: aotconsole linux-aot
run: docker build -t console -f src/FrameworkTests/AotConsole/Dockerfiles/linux-chiseled . && docker run --rm -t console
- name: console linux-aot
if: runner.os == 'Linux' && (success() || failure())
run: docker build -t aotconsole -f src/FrameworkTests/AotConsole/Dockerfiles/linux-aot . && docker run --rm -t aotconsole
- name: aotconsole linux-aot-chiseled
run: docker build -t console -f src/FrameworkTests/AotConsole/Dockerfiles/linux-aot . && docker run --rm -t console
- name: console linux-aot-chiseled
if: runner.os == 'Linux' && (success() || failure())
run: docker build -t aotconsole -f src/FrameworkTests/AotConsole/Dockerfiles/linux-aot-chiseled . && docker run --rm -t aotconsole
- name: aotconsole windows
run: docker build -t console -f src/FrameworkTests/AotConsole/Dockerfiles/linux-aot-chiseled . && docker run --rm -t console
- name: console windows
if: runner.os == 'Windows' && (success() || failure())
run: docker build -t aotconsole -f src/FrameworkTests/AotConsole/Dockerfiles/windows . && docker run --rm -t aotconsole
- name: aotconsole windows-aot
run: docker build -t console -f src/FrameworkTests/AotConsole/Dockerfiles/windows . && docker run --rm -t console
- name: console windows-aot
if: runner.os == 'Windows' && (success() || failure())
run: docker build -t aotconsole -f src/FrameworkTests/AotConsole/Dockerfiles/windows-aot . && docker run --rm -t aotconsole
- name: test-client linux
run: docker build -t console -f src/FrameworkTests/AotConsole/Dockerfiles/windows-aot . && docker run --rm -t console
- name: unittests linux
if: runner.os == 'Linux' && (success() || failure())
run: docker build -t test-client --build-arg TARGET_FRAMEWORK=net8.0 -f src/Tests/Dockerfiles/linux . && docker run --rm --mount type=bind,source=${{ github.workspace }}/src/Tests,target=/app/TestResults -t test-client net8.0/PDFtoImage.Tests.dll
- name: test-client windows
run: docker build -t unittests --build-arg TARGET_FRAMEWORK=net8.0 -f src/Tests/Dockerfiles/linux . && docker run --rm --mount type=bind,source=${{ github.workspace }}/src/Tests,target=/app/TestResults -t unittests net8.0/PDFtoImage.Tests.dll
- name: unittests windows
if: runner.os == 'Windows' && (success() || failure())
run: docker build -t test-client --build-arg TARGET_FRAMEWORK=net8.0 -f src/Tests/Dockerfiles/windows . && docker run --rm --mount type=bind,source=${{ github.workspace }}/src/Tests,target=/app/TestResults -t test-client net8.0/PDFtoImage.Tests.dll
run: docker build -t unittests --build-arg TARGET_FRAMEWORK=net8.0 -f src/Tests/Dockerfiles/windows . && docker run --rm --mount type=bind,source=${{ github.workspace }}/src/Tests,target=/app/TestResults -t unittests net8.0/PDFtoImage.Tests.dll
- name: Upload test results
if: success() || failure()
uses: actions/upload-artifact@main
Expand Down
3 changes: 0 additions & 3 deletions src/Tests/Dockerfiles/linux
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ RUN dotnet build "./Tests/Tests.csproj" -c $BUILD_CONFIGURATION -o /app/build/$T

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN apt update && apt install -y \
clang \
zlib1g-dev
RUN dotnet publish "./Tests/Tests.csproj" -c $BUILD_CONFIGURATION -o /app/publish --no-restore -f $TARGET_FRAMEWORK

FROM base AS final
Expand Down
3 changes: 0 additions & 3 deletions src/Tests/Dockerfiles/windows
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ RUN dotnet build "./Tests/Tests.csproj" -c $BUILD_CONFIGURATION -o /app/build/$T

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN apt update && apt install -y \
clang \
zlib1g-dev
RUN dotnet publish "./Tests/Tests.csproj" -c $BUILD_CONFIGURATION -o /app/publish --no-restore -f $TARGET_FRAMEWORK

FROM base AS final
Expand Down

0 comments on commit 5b42415

Please sign in to comment.