fix indents #161
Workflow file for this run
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
# Copyright CodeMerx 2020 | |
# This file is part of CodemerxDecompile. | |
# CodemerxDecompile is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# CodemerxDecompile is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU Affero General Public License for more details. | |
# You should have received a copy of the GNU Affero General Public License | |
# along with CodemerxDecompile. If not, see<https://www.gnu.org/licenses/>. | |
name: Build in Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- improvement/tests | |
jobs: | |
test-on-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Restore SNK | |
uses: RollyPeres/base64-to-path@v1 | |
with: | |
filePath: ${{ github.workspace }}/common/CDKey.snk | |
encodedString: ${{ secrets.CD_SNK }} | |
- name: Setup DotNet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
2.x | |
3.x | |
5.x | |
6.x | |
7.x | |
- name: Build Solution | |
run: dotnet build engine/CodemerxDecompileEngine.sln -c Release | |
- name: Run Tests | |
run: dotnet test engine/Decompiler.Tests -c Release | |
test-on-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Restore SNK | |
uses: RollyPeres/base64-to-path@v1 | |
with: | |
filePath: ${{ github.workspace }}/common/CDKey.snk | |
encodedString: ${{ secrets.CD_SNK }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.x | |
7.x | |
- name: Build Tests Project | |
run: dotnet build engine/Decompiler.Tests/Decompiler.Tests.csproj -c Release | |
- name: Run Tests | |
run: dotnet test engine/Decompiler.Tests -c Release | |
test-on-mac: | |
runs-on: macos-latest | |
env: | |
DOTNET_INSTALL_DIR: "/usr/local/share/dotnet" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Restore SNK | |
uses: RollyPeres/base64-to-path@v1 | |
with: | |
filePath: ${{ github.workspace }}/common/CDKey.snk | |
encodedString: ${{ secrets.CD_SNK }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.x | |
7.x | |
- name: Build Tests Project | |
run: dotnet build engine/Decompiler.Tests/Decompiler.Tests.csproj -c Release | |
- name: Run Tests | |
run: dotnet test engine/Decompiler.Tests -c Release | |
# - name: Compress Decompiler.Tests/bin | |
# if: always() | |
# run: zip -r Decompiler.Tests.Bin.zip engine/Decompiler.Tests/bin | |
# - name: Upload Decompiler.Tests.Bin artifact | |
# if: always() | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: Decompiler.Tests.Bin | |
# path: Decompiler.Tests.Bin.zip |