diff --git a/.github/workflows/build-test-cross.yml b/.github/workflows/build-test-cross.yml index d7d00a8..29ee889 100644 --- a/.github/workflows/build-test-cross.yml +++ b/.github/workflows/build-test-cross.yml @@ -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 \ No newline at end of file + if: ${{ matrix.os == 'ubuntu-latest' && matrix.docker != true }} + run: artifact/hello_dotnet-linux-x64/Explore.Cli --version \ No newline at end of file