Skip to content

Commit

Permalink
ci: run version command as no command is exit code 1
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed May 17, 2024
1 parent 91b3e84 commit 12bfd6b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build-test-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,25 @@ jobs:
uses: docker/setup-qemu-action@v3
- name: test alpine ${{ matrix.arch }} package
if: ${{ matrix.alpine == true && matrix.arch == 'arm64' }}
run: docker run --platform=linux/${{ matrix.arch }} --rm -v $(pwd):/app alpine /bin/sh -c 'apk add --no-cache gcc icu && chmod +x ./app/artifact/hello_dotnet-linux-musl-arm64/Explore.Cli && ./app/artifact/hello_dotnet-linux-musl-arm64/Explore.Cli'
run: docker run --platform=linux/${{ matrix.arch }} --rm -v $(pwd):/app alpine /bin/sh -c 'apk add --no-cache gcc icu && chmod +x ./app/artifact/hello_dotnet-linux-musl-arm64/Explore.Cli && ./app/artifact/hello_dotnet-linux-musl-arm64/Explore.Cli --version'
- name: test alpine ${{ matrix.arch }} package
if: ${{ matrix.alpine == true && matrix.arch == 'amd64' }}
run: docker run --platform=linux/${{ matrix.arch }} --rm -v $(pwd):/app alpine /bin/sh -c 'apk add --no-cache gcc icu && chmod +x ./app/artifact/hello_dotnet-linux-musl-x64/Explore.Cli && ./app/artifact/hello_dotnet-linux-musl-x64/Explore.Cli'
- name: test debian ${{ matrix.arch }} package
if: ${{ matrix.debian == true && matrix.arch == 'amd64' }}
run: docker run --platform=linux/${{ matrix.arch }} --rm -v $(pwd):/app debian /bin/bash -c 'apt update && apt install -y libicu-dev && chmod +x ./app/artifact/hello_dotnet-linux-arm64/Explore.Cli && ./app/artifact/hello_dotnet-linux-arm64/Explore.Cli'
run: docker run --platform=linux/${{ matrix.arch }} --rm -v $(pwd):/app alpine /bin/sh -c 'apk add --no-cache gcc icu && chmod +x ./app/artifact/hello_dotnet-linux-musl-x64/Explore.Cli && ./app/artifact/hello_dotnet-linux-musl-x64/Explore.Cli --version'
- name: test debian ${{ matrix.arch }} package
if: ${{ matrix.debian == true && matrix.arch == 'arm64' }}
run: docker run --platform=linux/${{ matrix.arch }} --rm -v $(pwd):/app debian /bin/bash -c 'apt update && apt install -y libicu-dev && chmod +x ./app/artifact/hello_dotnet-linux-x64/Explore.Cli && ./app/artifact/hello_dotnet-linux-x64/Explore.Cli'
run: docker run --platform=linux/${{ matrix.arch }} --rm -v $(pwd):/app debian /bin/bash -c 'apt update && apt install -y libicu-dev && chmod +x ./app/artifact/hello_dotnet-linux-arm64/Explore.Cli && ./app/artifact/hello_dotnet-linux-arm64/Explore.Cli --version'
- name: test debian ${{ matrix.arch }} package
if: ${{ matrix.debian == true && matrix.arch == 'amd64' }}
run: docker run --platform=linux/${{ matrix.arch }} --rm -v $(pwd):/app debian /bin/bash -c 'apt update && apt install -y libicu-dev && chmod +x ./app/artifact/hello_dotnet-linux-x64/Explore.Cli && ./app/artifact/hello_dotnet-linux-x64/Explore.Cli --version'
- name: test 'macos-14'
if: ${{ runner.os == 'macos-14' }}
run: artifact/hello_dotnet-osx-arm64/Explore.Cli
if: ${{ matrix.os == 'macos-14' }}
run: artifact/hello_dotnet-osx-arm64/Explore.Cli --version
- name: test 'macos-12'
if: ${{ runner.os == 'macos-12' }}
run: artifact/hello_dotnet-osx-x64/Explore.Cli
if: ${{ matrix.os == 'macos-12' }}
run: artifact/hello_dotnet-osx-x64/Explore.Cli --version
- name: test 'windows-latest'
if: ${{ runner.os == 'windows-latest' }}
run: artifact/hello_dotnet-win-x64/Explore.Cli.exe
if: ${{ matrix.os == 'windows-latest' }}
run: artifact/hello_dotnet-win-x64/Explore.Cli.exe --version
- name: test 'ubuntu-latest'
if: ${{ runner.os == 'ubuntu-latest' && matrix.docker != true }}
run: artifact/hello_dotnet-linux-x64/Explore.Cli
if: ${{ matrix.os == 'ubuntu-latest' && matrix.docker != true }}
run: artifact/hello_dotnet-linux-x64/Explore.Cli --version

0 comments on commit 12bfd6b

Please sign in to comment.