From 91b3e84f829efafdf64873717de961446a8c3adb Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Fri, 17 May 2024 17:06:43 +0100 Subject: [PATCH] ci: correct musl paths, chmod + add name to ci wf --- .github/workflows/build-test-cross.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test-cross.yml b/.github/workflows/build-test-cross.yml index 77e0e50..d7d00a8 100644 --- a/.github/workflows/build-test-cross.yml +++ b/.github/workflows/build-test-cross.yml @@ -31,6 +31,7 @@ jobs: run: shell: sh needs: [build] + name: Test ${{ matrix.docker == true && matrix.alpine == true && 'linux-musl' || matrix.docker == true && matrix.alpine == false && 'linux' || matrix.os }}-${{ matrix.arch }} strategy: fail-fast: false matrix: @@ -67,16 +68,16 @@ 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 && ./app/artifact/hello_dotnet-linux-arm64-musl/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' - 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 && ./app/artifact/hello_dotnet-linux-x64-musl/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' - 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 && ./app/artifact/hello_dotnet-linux-arm64/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' - 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 && ./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-x64/Explore.Cli && ./app/artifact/hello_dotnet-linux-x64/Explore.Cli' - name: test 'macos-14' if: ${{ runner.os == 'macos-14' }} run: artifact/hello_dotnet-osx-arm64/Explore.Cli