use different step

This commit is contained in:
Jesse Bannon 2023-02-22 14:00:21 -08:00
parent 29ba89d5bb
commit 4790bea149

View file

@ -74,36 +74,35 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [armv6l, armv7l, aarch64]
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
arch: [ "aarch64", "armv7", "armv6"]
steps:
- uses: actions/checkout@v3
- uses: pguyot/arm-runner-action@v2
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
image_additional_mb: 4096
base_image: ${{ matrix.base_image }}
cpu: ${{ matrix.cpu }}
cpu_info: ${{ matrix.cpu_info }}
copy_repository_path: /opt/ytdl-sub
optimize_image: no
commands: |
arch: ${{ matrix.arch }}
distro: alpine_latest
# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}
# Set an output parameter `uname` for use in subsequent steps
run: |
apt-get -y install zip
pip install -e .[build]
EXEC_SUFFIX=${{ matrix.package-suffix }} make executable
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 }}
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
uses: actions/upload-artifact@v3
with: