diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 38df80b7..d7895998 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -8,37 +8,37 @@ on: inputs: version_override: type: string - description: 'Version number override' + description: "Version number override" required: false run_unit_tests: type: boolean - description: 'Skip running unit tests' + description: "Skip running unit tests" required: false default: true runs_on: type: string - description: 'The GitHub hosted runner to use' + description: "The GitHub hosted runner to use" required: true OS: type: string description: > The operating system targeted by the build. - + There must be a corresponding Bundle_$OS.sh script file in ./Scripts required: true architecture: type: string - description: 'CPU architecture targeted by the build.' + description: "CPU architecture targeted by the build." required: true env: - DOTNET_CONFIGURATION: 'Release' - DOTNET_VERSION: '8.0.x' - RELEASE_NAME: 'chardonnay' + DOTNET_CONFIGURATION: "Release" + DOTNET_VERSION: "8.0.x" + RELEASE_NAME: "chardonnay" jobs: build: - name: '${{ inputs.OS }}-${{ inputs.architecture }}' + name: "${{ inputs.OS }}-${{ inputs.architecture }}" runs-on: ${{ inputs.runs_on }} steps: - uses: actions/checkout@v4 @@ -60,7 +60,7 @@ jobs: version="$(grep -Eio -m 1 '.*' ./Source/AppScaffolding/AppScaffolding.csproj | sed -r 's/<\/?Version>//g')" fi echo "version=${version}" >> "${GITHUB_OUTPUT}" - + - name: Unit test if: ${{ inputs.run_unit_tests }} working-directory: ./Source @@ -69,7 +69,7 @@ jobs: - name: Publish id: publish working-directory: ./Source - run: | + run: | if [[ "${{ inputs.OS }}" == "MacOS" ]] then display_os="macOS" @@ -78,13 +78,13 @@ jobs: display_os="Linux" RUNTIME_ID="linux-${{ inputs.architecture }}" fi - + OUTPUT="bin/Publish/${display_os}-${{ inputs.architecture }}-${{ env.RELEASE_NAME }}" - + echo "display_os=${display_os}" >> $GITHUB_OUTPUT echo "Runtime Identifier: $RUNTIME_ID" echo "Output Directory: $OUTPUT" - + dotnet publish \ LibationAvalonia/LibationAvalonia.csproj \ --runtime $RUNTIME_ID \ @@ -122,7 +122,7 @@ jobs: ${SCRIPT} "${BUNDLE_DIR}" "${{ steps.get_version.outputs.version }}" "${{ inputs.architecture }}" artifact=$(ls ./bundle) echo "artifact=${artifact}" >> "${GITHUB_OUTPUT}" - + - name: Publish bundle uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 7b4c1ddf..cff369b0 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -8,21 +8,21 @@ on: inputs: version_override: type: string - description: 'Version number override' + description: "Version number override" required: false run_unit_tests: type: boolean - description: 'Skip running unit tests' + description: "Skip running unit tests" required: false default: true env: - DOTNET_CONFIGURATION: 'Release' - DOTNET_VERSION: '8.0.x' + DOTNET_CONFIGURATION: "Release" + DOTNET_VERSION: "8.0.x" jobs: build: - name: '${{ matrix.os }}-${{ matrix.release_name }}' + name: "${{ matrix.os }}-${{ matrix.release_name }}" runs-on: windows-latest strategy: matrix: @@ -112,4 +112,4 @@ jobs: name: ${{ steps.zip.outputs.artifact }}.zip path: ./Source/bin/Publish/${{ steps.zip.outputs.artifact }}.zip if-no-files-found: error - retention-days: 7 + retention-days: 7 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce1186ac..a67098ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,22 +8,21 @@ on: inputs: version_override: type: string - description: 'Version number override' + description: "Version number override" required: false run_unit_tests: type: boolean - description: 'Skip running unit tests' + description: "Skip running unit tests" required: false - default: true + default: true jobs: - windows: uses: ./.github/workflows/build-windows.yml with: version_override: ${{ inputs.version_override }} run_unit_tests: ${{ inputs.run_unit_tests }} - + linux: strategy: matrix: @@ -36,7 +35,7 @@ jobs: OS: ${{ matrix.OS }} architecture: ${{ matrix.architecture }} run_unit_tests: ${{ inputs.run_unit_tests }} - + macos: strategy: matrix: @@ -47,4 +46,4 @@ jobs: runs_on: macos-latest OS: MacOS architecture: ${{ matrix.architecture }} - run_unit_tests: ${{ inputs.run_unit_tests }} + run_unit_tests: ${{ inputs.run_unit_tests }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dd41c9f1..d1a14479 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,11 +8,11 @@ on: inputs: version: type: string - description: 'Version number' + description: "Version number" required: true release: type: boolean - description: 'Is this a release build?' + description: "Is this a release build?" required: true secrets: docker_username: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be07bd8e..7c6b136a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ name: release on: push: tags: - - 'v*' + - "v*" jobs: prerelease: runs-on: ubuntu-latest @@ -15,7 +15,7 @@ jobs: - name: Get tag version id: get_version run: | - export TAG='${{ github.ref_name }}' + export TAG="${{ github.ref_name }}" echo "version=${TAG#v}" >> "${GITHUB_OUTPUT}" docker: @@ -34,9 +34,9 @@ jobs: with: version_override: ${{ needs.prerelease.outputs.version }} run_unit_tests: false - + release: - needs: [prerelease,build] + needs: [prerelease, build] runs-on: ubuntu-latest steps: - name: Download artifacts @@ -56,7 +56,7 @@ jobs: - name: Upload release assets uses: dwenegar/upload-release-assets@v2 env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: - release_id: '${{ steps.release.outputs.id }}' + release_id: "${{ steps.release.outputs.id }}" assets_path: ./artifacts diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index d8b302ec..27abc275 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -1,5 +1,5 @@ # validate.yml -# Validates that Libation will build on a pull request or push to master. +# Validates that Libation will build on a pull request or push to master. --- name: validate