Merge pull request #1655 from delta1/ci-binaries

ci: wip fixing build binaries actions
This commit is contained in:
Byron Hambly 2024-05-28 12:23:41 +02:00 committed by GitHub
commit 81d1f7e1bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,11 +80,6 @@ jobs:
if: matrix.target != 'armv7-unknown-linux-gnueabihf' if: matrix.target != 'armv7-unknown-linux-gnueabihf'
run: target/${{ matrix.target }}/release/${{ matrix.bin }} --help run: target/${{ matrix.target }}/release/${{ matrix.bin }} --help
# Remove once python 3 is the default
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- id: create-archive-name - id: create-archive-name
shell: python # Use python to have a prettier name for the archive on Windows. shell: python # Use python to have a prettier name for the archive on Windows.
run: | run: |
@ -98,10 +93,13 @@ jobs:
archive_name=f'${{ matrix.bin }}_${{ github.event.release.tag_name }}_{os_info.system}_{arch}.${{ matrix.archive_ext }}' archive_name=f'${{ matrix.bin }}_${{ github.event.release.tag_name }}_{os_info.system}_{arch}.${{ matrix.archive_ext }}'
print(f'::set-output name=archive::{archive_name}') print(f'archive={archive_name} >> $GITHUB_OUTPUT')
- name: debug
run: tree ./target
- name: Pack macos archive - name: Pack macos archive
if: matrix.os == 'macos-latest' if: startsWith(matrix.os, 'macos')
shell: bash shell: bash
run: gtar -C ./target/${{ matrix.target }}/release --create --file=${{ steps.create-archive-name.outputs.archive }} ${{ matrix.bin }} run: gtar -C ./target/${{ matrix.target }}/release --create --file=${{ steps.create-archive-name.outputs.archive }} ${{ matrix.bin }}