From 93df40eff690588e056cdf1f698a0be9c7d7cc2e Mon Sep 17 00:00:00 2001 From: Takumasa Sakao Date: Mon, 19 Aug 2024 18:41:26 +0900 Subject: [PATCH] Test cd --- .github/workflows/cd.yml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 51f62aa..decf3c0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -2,14 +2,13 @@ name: CD # Continuous Deployment on: push: - tags: - - '[v]?[0-9]+.[0-9]+.[0-9]+' - - '[v]?[0-9]+.[0-9]+.[0-9]+-[a-z]+.[0-9]+' + branches: + - test-cd jobs: publish: - name: Publishing for ${{ matrix.os }} + name: Publishing for ${{ matrix.target }} runs-on: ${{ matrix.os }} strategy: @@ -86,9 +85,7 @@ jobs: - name: install strip command shell: bash run: | - if [[ ${{ matrix.target }} == aarch64-unknown-linux-gnu ]]; then - sudo apt update sudo apt-get install -y binutils-aarch64-linux-gnu fi @@ -103,8 +100,9 @@ jobs: BINARY_NAME=${{ matrix.binary-name }}${{ matrix.binary-postfix }} if [[ ${{ matrix.target }} == aarch64-unknown-linux-gnu ]]; then - GCC_PREFIX="aarch64-linux-gnu-" + elif [[ ${{ matrix.target }} == aarch64-unknown-linux-musl ]]; then + GCC_PREFIX="aarch64-linux-musl-" else GCC_PREFIX="" fi @@ -112,7 +110,7 @@ jobs: ########## create tar.gz ########## - RELEASE_NAME=${{ matrix.binary-name }}-${GITHUB_REF/refs\/tags\//}-${{ matrix.os-name }}-${{ matrix.architecture }} + RELEASE_NAME=${{ matrix.binary-name }}-test-${{ matrix.os-name }}-${{ matrix.architecture }} tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME @@ -124,16 +122,15 @@ jobs: else shasum -a 256 $RELEASE_NAME.tar.gz > $RELEASE_NAME.sha256 fi - - name: Releasing assets - uses: softprops/action-gh-release@v1 - with: - files: | - - target/${{ matrix.target }}/release/${{ matrix.binary-name }}-*.tar.gz - target/${{ matrix.target }}/release/${{ matrix.binary-name }}-*.sha256 + # - name: Releasing assets + # uses: softprops/action-gh-release@v1 + # with: + # files: | - env: + # target/${{ matrix.target }}/release/${{ matrix.binary-name }}-*.tar.gz + # target/${{ matrix.target }}/release/${{ matrix.binary-name }}-*.sha256 - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}