Skip to content

Commit

Permalink
ci: correct musl paths, chmod + add name to ci wf
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed May 17, 2024
1 parent 049a6d3 commit 91b3e84
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-test-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 91b3e84

Please sign in to comment.