From 9db3b6b1a6502c93f72e70563d88c45b2fe89d10 Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Thu, 6 Mar 2025 21:35:04 -0600 Subject: [PATCH 1/4] fix(ci): use cp --- .github/workflows/release-component.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-component.yml b/.github/workflows/release-component.yml index 54a3b4a0c3..2d8759e894 100644 --- a/.github/workflows/release-component.yml +++ b/.github/workflows/release-component.yml @@ -140,12 +140,12 @@ jobs: nix build .#packages.x86_64-linux."$COMPONENT" --accept-flake-config if [[ "$COMPONENT" =~ uniond-release ]] then - mv result/bin/uniond "$COMPONENT"-x86_64-linux + cp result/bin/uniond "$COMPONENT"-x86_64-linux elif [[ $ARCHIVE ]] then tar -zcf "$COMPONENT"-x86_64-linux result else - mv result/bin/"$COMPONENT" "$COMPONENT"-x86_64-linux + cp result/bin/"$COMPONENT" "$COMPONENT"-x86_64-linux fi - uses: actions/upload-artifact@v4 with: @@ -171,12 +171,12 @@ jobs: nix build .#packages.aarch64-linux."$COMPONENT" --accept-flake-config if [[ "$COMPONENT" =~ uniond-release ]] then - mv result/bin/uniond "$COMPONENT"-aarch64-linux + cp result/bin/uniond "$COMPONENT"-aarch64-linux elif [[ $ARCHIVE ]] then tar -zcf "$COMPONENT"-aarch64-linux result else - mv result/bin/"$COMPONENT" "$COMPONENT"-aarch64-linux + cp result/bin/"$COMPONENT" "$COMPONENT"-aarch64-linux fi - uses: actions/upload-artifact@v4 with: From b038e23733733e2f5ce076024bc984b5233693bc Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Thu, 6 Mar 2025 21:37:12 -0600 Subject: [PATCH 2/4] chore(ci): test workflow --- .github/workflows/release-component.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-component.yml b/.github/workflows/release-component.yml index 2d8759e894..cb966eda56 100644 --- a/.github/workflows/release-component.yml +++ b/.github/workflows/release-component.yml @@ -2,7 +2,7 @@ name: Release Component on: push: - tags: ['*/v[0-9]+\.[0-9]+\.[0-9]+\-rc[0-9]+*', '*/v[0-9]+\.[0-9]+\.[0-9]+*'] + # tags: ['*/v[0-9]+\.[0-9]+\.[0-9]+\-rc[0-9]+*', '*/v[0-9]+\.[0-9]+\.[0-9]+*'] jobs: eval-tag: @@ -17,7 +17,7 @@ jobs: steps: - id: eval env: - TAG: ${{github.ref_name}} + TAG: uniond/v1.0.0-rc1-alpha1 run: | component="${TAG%/*}" case $component in @@ -275,6 +275,7 @@ jobs: COMPONENT: ${{ needs.eval-tag.outputs.component }} TAG: ${{ needs.eval-tag.outputs.version }} run: | + exit 1 wget https://github.com/rapidsai/skopeo/releases/download/v1.12/skopeo-linux-amd64 -O ./skopeo chmod +x ./skopeo && sudo cp ./skopeo /usr/bin echo "downloaded & installed skopeo" @@ -324,6 +325,7 @@ jobs: echo "Setting binary output" echo "FILES=**/$COMPONENT-*" >> $GITHUB_OUTPUT fi + exit 1 tree - uses: softprops/action-gh-release@v2 with: From b072044f08785c9c86894d8a373b094328efef9f Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Thu, 6 Mar 2025 21:49:25 -0600 Subject: [PATCH 3/4] fix(ci): unescape slash --- .github/workflows/release-component.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-component.yml b/.github/workflows/release-component.yml index cb966eda56..da349e1774 100644 --- a/.github/workflows/release-component.yml +++ b/.github/workflows/release-component.yml @@ -90,8 +90,8 @@ jobs: env: COMPONENT: ${{ needs.eval-tag.outputs.component }} run: | - nix build .#packages.x86_64-linux.\"$COMPONENT\"-image --accept-flake-config - cp -Lr result x86_64-linux.\"$COMPONENT\"-image + nix build .#packages.x86_64-linux."$COMPONENT"-image --accept-flake-config + cp -Lr result x86_64-linux."$COMPONENT"-image - uses: actions/upload-artifact@v4 with: name: x86_64-linux.${{ needs.eval-tag.outputs.component }}-image From dac3aedf599889a252530ed2d42762e9c29a079d Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Thu, 6 Mar 2025 21:58:11 -0600 Subject: [PATCH 4/4] chore: revert "chore(ci): test workflow" This reverts commit b038e23733733e2f5ce076024bc984b5233693bc. --- .github/workflows/release-component.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-component.yml b/.github/workflows/release-component.yml index da349e1774..58a4f67281 100644 --- a/.github/workflows/release-component.yml +++ b/.github/workflows/release-component.yml @@ -2,7 +2,7 @@ name: Release Component on: push: - # tags: ['*/v[0-9]+\.[0-9]+\.[0-9]+\-rc[0-9]+*', '*/v[0-9]+\.[0-9]+\.[0-9]+*'] + tags: ['*/v[0-9]+\.[0-9]+\.[0-9]+\-rc[0-9]+*', '*/v[0-9]+\.[0-9]+\.[0-9]+*'] jobs: eval-tag: @@ -17,7 +17,7 @@ jobs: steps: - id: eval env: - TAG: uniond/v1.0.0-rc1-alpha1 + TAG: ${{github.ref_name}} run: | component="${TAG%/*}" case $component in @@ -275,7 +275,6 @@ jobs: COMPONENT: ${{ needs.eval-tag.outputs.component }} TAG: ${{ needs.eval-tag.outputs.version }} run: | - exit 1 wget https://github.com/rapidsai/skopeo/releases/download/v1.12/skopeo-linux-amd64 -O ./skopeo chmod +x ./skopeo && sudo cp ./skopeo /usr/bin echo "downloaded & installed skopeo" @@ -325,7 +324,6 @@ jobs: echo "Setting binary output" echo "FILES=**/$COMPONENT-*" >> $GITHUB_OUTPUT fi - exit 1 tree - uses: softprops/action-gh-release@v2 with: