From 2a6de1e59941b0a3ce25b526a38a1ad5874aaaeb Mon Sep 17 00:00:00 2001 From: scarf Date: Sun, 3 Mar 2024 16:13:03 +0900 Subject: [PATCH] ci(revert-later): only msvc --- .github/workflows/release.yml | 154 +--------------------------------- 1 file changed, 1 insertion(+), 153 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99d3a0d688e4..3dcf5e4343db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,78 +9,7 @@ env: VCPKG_BINARY_SOURCES: "default" jobs: - metadata: - runs-on: ubuntu-latest - outputs: - count: ${{ steps.env_vars.outputs.count }} - tag_name: ${{ steps.env_vars.outputs.tag_name }} - release_name: ${{ steps.env_vars.outputs.release_name }} - steps: - - uses: actions/checkout@v3 - - id: env_vars - run: | - TAG_NAME=$(date -u --iso-8601 --date='1 day ago') - COMMITS=$(git log --oneline --since="$TAG_NAME" | wc -l) - RELEASE_NAME="Experimental $TAG_NAME" - - echo "commits yesterday ($TAG_NAME): $COMMITS" >> "$GITHUB_STEP_SUMMARY" - - echo "count=$COMMITS" >> "$GITHUB_OUTPUT" - echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT" - echo "release_name=$RELEASE_NAME" >> "$GITHUB_OUTPUT" - - release: - needs: metadata - name: Create Release - runs-on: ubuntu-22.04 - - # if: fromJson(needs.metadata.outputs.count) > 0 - outputs: - upload_url: ${{ steps.create_release.outputs.upload_url }} - release_already_exists: ${{ steps.tag_check.outputs.exists }} - - steps: - - name: Check if there is existing git tag - id: tag_check - uses: mukunku/tag-exists-action@v1.4.0 - with: - tag: ${{ needs.metadata.outputs.tag_name }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - uses: actions/checkout@v3 - - - name: Push tag - if: ${{ steps.tag_check.outputs.exists == 'false' }} - id: tag_version - uses: mathieudutour/github-tag-action@v5.5 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - custom_tag: ${{ needs.metadata.outputs.tag_name }} - tag_prefix: "" - - - uses: actions/checkout@v3 - - - run: git fetch origin tag ${{ needs.metadata.outputs.tag_name }} --no-tags - - - name: Create release - if: ${{ steps.tag_check.outputs.exists == 'false' }} - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ needs.metadata.outputs.tag_name }} - release_name: ${{ needs.metadata.outputs.release_name }} - body: | - ${{ steps.build_changelog.outputs.changelog }} - These are the outputs for the experimental build of commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) - draft: false - prerelease: true - builds: - needs: [metadata, release] - if: ${{ needs.release.outputs.release_already_exists == 'false' }} strategy: fail-fast: false matrix: @@ -112,7 +41,7 @@ jobs: run: | cat >VERSION.txt < release.keystore.asc - gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch release.keystore.asc > app/release.keystore - echo "${{ secrets.KEYSTORE_PROPERTIES }}" > keystore.properties.asc - gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.properties.asc > keystore.properties - export UPSTREAM_BUILD_NUMBER="$((2037 + ${{ github.run_number }}))" - chmod +x gradlew - if [ ${{ matrix.android }} = arm64 ] - then - ./gradlew -Pj=$((`nproc`+0)) -Pabi_arm_32=false assembleExperimentalRelease - mv ./app/build/outputs/apk/experimental/release/*.apk ../cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.apk - elif [ ${{ matrix.android }} = arm32 ] - then - ./gradlew -Pj=$((`nproc`+0)) -Pabi_arm_64=false assembleExperimentalRelease - mv ./app/build/outputs/apk/experimental/release/*.apk ../cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.apk - elif [ ${{ matrix.android }} = bundle ] - then - ./gradlew -Pj=$((`nproc`+0)) bundleExperimentalRelease - mv ./app/build/outputs/bundle/experimentalRelease/*.aab ../cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.aab - fi - - - name: Upload release asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.${{ matrix.ext }} - asset_name: cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.${{ matrix.ext }} - asset_content_type: ${{ matrix.content }}