use different step
This commit is contained in:
parent
29ba89d5bb
commit
4790bea149
1 changed files with 21 additions and 22 deletions
43
.github/workflows/release.yaml
vendored
43
.github/workflows/release.yaml
vendored
|
|
@ -74,36 +74,35 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [armv6l, armv7l, aarch64]
|
arch: [ "aarch64", "armv7", "armv6"]
|
||||||
include:
|
|
||||||
- arch: armv6l
|
|
||||||
cpu: arm1176
|
|
||||||
base_image: raspios_lite:latest
|
|
||||||
cpu_info: raspberrypi_zero_w
|
|
||||||
- arch: armv7l
|
|
||||||
cpu: cortex-a7
|
|
||||||
base_image: raspios_lite:latest
|
|
||||||
cpu_info: raspberrypi_3b
|
|
||||||
- arch: aarch64
|
|
||||||
cpu: cortex-a53
|
|
||||||
base_image: raspios_lite_arm64:latest
|
|
||||||
cpu_info: raspberrypi_zero2_w_arm64_w
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: pguyot/arm-runner-action@v2
|
- uses: uraimo/run-on-arch-action@v2
|
||||||
|
name: Run commands
|
||||||
|
id: runcmd
|
||||||
with:
|
with:
|
||||||
image_additional_mb: 4096
|
arch: ${{ matrix.arch }}
|
||||||
base_image: ${{ matrix.base_image }}
|
distro: alpine_latest
|
||||||
cpu: ${{ matrix.cpu }}
|
|
||||||
cpu_info: ${{ matrix.cpu_info }}
|
# Not required, but speeds up builds by storing container images in
|
||||||
copy_repository_path: /opt/ytdl-sub
|
# a GitHub package registry.
|
||||||
optimize_image: no
|
githubToken: ${{ github.token }}
|
||||||
commands: |
|
|
||||||
|
# Set an output parameter `uname` for use in subsequent steps
|
||||||
|
run: |
|
||||||
apt-get -y install zip
|
apt-get -y install zip
|
||||||
pip install -e .[build]
|
pip install -e .[build]
|
||||||
EXEC_SUFFIX=${{ matrix.package-suffix }} make executable
|
EXEC_SUFFIX=${{ matrix.package-suffix }} make executable
|
||||||
zip dist/ytdl-sub${{ matrix.package-suffix }}.zip dist/ytdl-sub${{ matrix.package-suffix }}
|
zip dist/ytdl-sub${{ matrix.package-suffix }}.zip dist/ytdl-sub${{ matrix.package-suffix }}
|
||||||
tar czf dist/ytdl-sub${{ matrix.package-suffix }}.tar.gz dist/ytdl-sub${{ matrix.package-suffix }}
|
tar czf dist/ytdl-sub${{ matrix.package-suffix }}.tar.gz dist/ytdl-sub${{ matrix.package-suffix }}
|
||||||
|
uname -a
|
||||||
|
echo ::set-output name=uname::$(uname -a)
|
||||||
|
|
||||||
|
- name: Get the output
|
||||||
|
# Echo the `uname` output parameter from the `runcmd` step
|
||||||
|
run: |
|
||||||
|
echo "The uname output was ${{ steps.runcmd.outputs.uname }}"
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue