From 653173c9bf7859cbd4c3d3920c3a6a5593fece29 Mon Sep 17 00:00:00 2001 From: HiGarfield Date: Sun, 29 Sep 2024 23:33:49 +0800 Subject: [PATCH] update te CI --- .github/workflows/CI.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2911ee8..aa3d95c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -28,21 +28,23 @@ jobs: ref: master fetch-depth: 0 - - name: Compile dynamic + - name: Compile macos if: ${{ startsWith( matrix.os, 'macos-' ) }} run: | make sudo ./tests/process_iterator_test - cp ./tests/process_iterator_test ./tests/abcdefghijklmnopqrstuvwxyzabcdefghi - sudo ./tests/abcdefghijklmnopqrstuvwxyzabcdefghi + random_filename="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 255)" + cp ./tests/process_iterator_test ./tests/${random_filename} + sudo ./tests/${random_filename} - - name: Compile static + - name: Compile ubuntu if: ${{ startsWith( matrix.os, 'ubuntu-' ) }} run: | make LDFLAGS="-static" sudo ./tests/process_iterator_test - cp ./tests/process_iterator_test ./tests/abcdefghijklmnopqrstuvwxyzabcdefghi - sudo ./tests/abcdefghijklmnopqrstuvwxyzabcdefghi + random_filename="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 255)" + cp ./tests/process_iterator_test ./tests/${random_filename} + sudo ./tests/${random_filename} - name: Upload uses: actions/upload-artifact@main @@ -72,8 +74,9 @@ jobs: run: | gmake sudo ./tests/process_iterator_test - cp ./tests/process_iterator_test ./tests/abcdefghijklmnopqrstuvwxyzabcdefghi - sudo ./tests/abcdefghijklmnopqrstuvwxyzabcdefghi + random_filename="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 255)" + cp ./tests/process_iterator_test ./tests/${random_filename} + sudo ./tests/${random_filename} - name: Upload uses: actions/upload-artifact@main