diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 84c174d0..813bc79c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,59 +22,66 @@ jobs: target: x86_64-unknown-linux-musl rust: stable build_deb: true - - build: aarch64-musl - host: ubuntu-latest - target: aarch64-unknown-linux-musl - rust: stable - build_deb: true + #- build: aarch64-musl + # host: ubuntu-latest + # target: aarch64-unknown-linux-musl + # rust: stable + # build_deb: true runs-on: ${{ matrix.host }} steps: - uses: actions/checkout@v4 - - name: Install Rust - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.rust }} - targets: ${{ matrix.target }} - - uses: taiki-e/install-action@v2.44.58 - with: - tool: cross,cargo-deb - - uses: Swatinem/rust-cache@v2 - with: - key: "${{matrix.build}}" - - name: install packages (ubuntu builds only) - if: startsWith(matrix.host, 'ubuntu') - run: scripts/install-ubuntu-packages - # native builds need all of these; cross builds only need binutils-multiarch + - name: test + run: | + echo event: ${{ github.event_name }} + echo is_wfd: ${{ github.event_name == 'workflow_dispatch' }} + echo not_wfd: ${{ github.event_name != 'workflow_dispatch' }} + echo WFTEST: ${{ env.WORKFLOW_TEST }} + echo not_WFTEST: ${{ ! env.WORKFLOW_TEST }} + #- name: Install Rust + # uses: dtolnay/rust-toolchain@master + # with: + # toolchain: ${{ matrix.rust }} + # targets: ${{ matrix.target }} + #- uses: taiki-e/install-action@v2.44.58 + # with: + # tool: cross,cargo-deb + #- uses: Swatinem/rust-cache@v2 + # with: + # key: "${{matrix.build}}" + #- name: install packages (ubuntu builds only) + # if: startsWith(matrix.host, 'ubuntu') + # run: scripts/install-ubuntu-packages + # # native builds need all of these; cross builds only need binutils-multiarch - #- name: Build - # run: cross build --release --locked --target ${{ matrix.target }} - - uses: taiki-e/upload-rust-binary-action@v1.22.1 - id: build - with: - bin: qcp - token: ${{ secrets.GITHUB_TOKEN }} - target: ${{ matrix.target }} - include: README.md,LICENSE,CHANGELOG.md - leading-dir: true - tar: unix - zip: windows - dry_run: ${{ env.WORKFLOW_TEST }} - - name: Make deb package - if: ${{ matrix.build_deb }} - run: scripts/make-debian-package --release ${{ matrix.target }} - - name: Upload binary artifact - uses: actions/upload-artifact@v4 - with: - name: qcp-tarball-${{ matrix.target }} - path: ${{ steps.build.outputs.archive }}.tar.gz - - name: Upload deb artifact - if: ${{ matrix.build_deb }} - uses: actions/upload-artifact@v4 - with: - name: qcp-deb-${{ matrix.target }} - path: target/**/debian/qcp*.deb - - name: Publish deb package to release - if: ${{ ! env.WORKFLOW_TEST }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release upload ${{ github.ref }} ${{ env.BUILT_DEB_FILE }} + ##- name: Build + ## run: cross build --release --locked --target ${{ matrix.target }} + #- uses: taiki-e/upload-rust-binary-action@v1.22.1 + # id: build + # with: + # bin: qcp + # token: ${{ secrets.GITHUB_TOKEN }} + # target: ${{ matrix.target }} + # include: README.md,LICENSE,CHANGELOG.md + # leading-dir: true + # tar: unix + # zip: windows + # dry_run: ${{ github.event_name == 'workflow_dispatch' }} + #- name: Make deb package + # if: ${{ matrix.build_deb }} + # run: scripts/make-debian-package --release ${{ matrix.target }} + #- name: Upload binary artifact + # uses: actions/upload-artifact@v4 + # with: + # name: qcp-tarball-${{ matrix.target }} + # path: ${{ steps.build.outputs.archive }}.tar.gz + #- name: Upload deb artifact + # if: ${{ matrix.build_deb }} + # uses: actions/upload-artifact@v4 + # with: + # name: qcp-deb-${{ matrix.target }} + # path: target/**/debian/qcp*.deb + #- name: Publish deb package to release + # if: ${{ github.event_name != 'workflow_dispatch' }} + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # run: gh release upload ${{ github.ref }} ${{ env.BUILT_DEB_FILE }}