Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/NesTiler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-13 19:07:34 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2022-10-13 19:07:34 +0300
commitf55c6cfaebf3639558b0dd8c5c5524d42711de69 (patch)
treeb981c29f17d1551e50804f7c85bd707b449552a7 /.github
parent230bb7bb8561bafe5f650dece104a1108384ca51 (diff)
Workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build-test.yml12
-rw-r--r--.github/workflows/release.yml4
2 files changed, 3 insertions, 13 deletions
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index d195082..246d43a 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -26,10 +26,8 @@ jobs:
env:
APP_NAME: nestiler
PROJECT_PATH: ./NesTiler
- TESTS_PATH: ./Tests
OUTPUT_DIR: output
CONFIGURATION: Release
- TESTS_CONFIGURATION: Debug
OUTPUT_SUBDIR: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.sc }}
steps:
- name: Checkout
@@ -43,15 +41,7 @@ jobs:
- name: Build
env:
SC_OPS: ${{ matrix.sc == 'self-contained' && '--self-contained true -p:PublishTrimmed=True' || '--no-self-contained' }}
- run: dotnet publish ${{ env.PROJECT_PATH }} -c ${{ env.CONFIGURATION }} -r ${{ matrix.os }}-${{ matrix.arch }} -p:PublishSingleFile=true $SC_OPS -p:IncludeAllContentForSelfExtract=true -o ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_SUBDIR }}/${{ env.APP_NAME }}
- - name: Tests
- if: |
- (matrix.host == 'ubuntu-latest' && matrix.os == 'linux' && matrix.arch != 'arm')
- || (matrix.host == 'macos-latest' && matrix.os == 'osx' && matrix.arch != 'arm')
- || (matrix.host == 'windows-latest' && matrix.os == 'win' && matrix.arch != 'arm')
- env:
- SC_OPS: ${{ matrix.sc == 'self-contained' && '--self-contained true -p:PublishTrimmed=True' || '--no-self-contained' }}
- run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.TESTS_CONFIGURATION }} -r ${{ matrix.os }}-${{ matrix.arch }} -p:PublishSingleFile=true $SC_OPS -p:IncludeAllContentForSelfExtract=true
+ run: dotnet publish ${{ env.PROJECT_PATH }} -c ${{ env.CONFIGURATION }} -r ${{ matrix.os }}-${{ matrix.arch }} -p:PublishSingleFile=true {{ env.SC_OPS }} -o ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_SUBDIR }}/${{ env.APP_NAME }}
- name: Upload artifact
if: |
(matrix.host == 'ubuntu-latest' && matrix.os == 'linux')
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 454b3cb..599fc17 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAME: nestiler
- PROJECT_PATH: .
+ PROJECT_PATH: NesTiler
OUTPUT_DIR: output
CONFIGURATION: Release
OUTPUT_SUBDIR: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.sc }}
@@ -59,7 +59,7 @@ jobs:
- name: Build
env:
SC_OPS: ${{ matrix.sc == 'self-contained' && '--self-contained true -p:PublishTrimmed=True' || '--no-self-contained' }}
- run: dotnet publish ${{ env.PROJECT_PATH }} -c ${{ env.CONFIGURATION }} -r ${{ matrix.os }}-${{ matrix.arch }} -p:PublishSingleFile=true $SC_OPS -p:IncludeAllContentForSelfExtract=true -o ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_SUBDIR }}/${{ env.APP_NAME }}
+ run: dotnet publish ${{ env.PROJECT_PATH }} -c ${{ env.CONFIGURATION }} -r ${{ matrix.os }}-${{ matrix.arch }} -p:PublishSingleFile=true {{ env.SC_OPS }} -o ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_SUBDIR }}/${{ env.APP_NAME }}
- name: Simple test
if: |
(matrix.host == 'ubuntu-latest' && matrix.os == 'linux' && matrix.arch != 'arm')