Skip to content

Commit

Permalink
ci: add aarch64 binaries [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed May 2, 2022
1 parent c5139f2 commit 1ec118a
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 4 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ jobs:
asset_path: artifacts/hello-deflate-x86_64
asset_name: hello-deflate-x86_64
asset_content_type: application/x-executable
- name: Upload hello-deflate-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/hello-deflate-aarch64
asset_name: hello-deflate-aarch64
asset_content_type: application/x-executable
- name: Upload hello-deflate-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -137,6 +146,15 @@ jobs:
asset_path: artifacts/hello-x86_64
asset_name: hello-x86_64
asset_content_type: application/x-executable
- name: Upload hello-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/hello-aarch64
asset_name: hello-aarch64
asset_content_type: application/x-executable
- name: Upload hello-lzma-arm
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -173,6 +191,15 @@ jobs:
asset_path: artifacts/hello-lzma-x86_64
asset_name: hello-lzma-x86_64
asset_content_type: application/x-executable
- name: Upload hello-lzma-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/hello-lzma-aarch64
asset_name: hello-lzma-aarch64
asset_content_type: application/x-executable
- name: Upload hello-lzma-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -227,6 +254,15 @@ jobs:
asset_path: artifacts/hello-minlzma-x86_64
asset_name: hello-minlzma-x86_64
asset_content_type: application/x-executable
- name: Upload hello-minlzma-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/hello-minlzma-aarch64
asset_name: hello-minlzma-aarch64
asset_content_type: application/x-executable
- name: Upload hello-minlzma-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -299,6 +335,15 @@ jobs:
asset_path: artifacts/hello-xz-x86_64
asset_name: hello-xz-x86_64
asset_content_type: application/x-executable
- name: Upload hello-xz-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/hello-xz-aarch64
asset_name: hello-xz-aarch64
asset_content_type: application/x-executable
- name: Upload hello-xz-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -353,6 +398,15 @@ jobs:
asset_path: artifacts/hello-zstd-x86_64
asset_name: hello-zstd-x86_64
asset_content_type: application/x-executable
- name: Upload hello-zstd-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/hello-zstd-aarch64
asset_name: hello-zstd-aarch64
asset_content_type: application/x-executable
- name: Upload hello-zstd-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -407,6 +461,15 @@ jobs:
asset_path: artifacts/papaw-deflate-x86_64
asset_name: papaw-deflate-x86_64
asset_content_type: application/x-executable
- name: Upload papaw-deflate-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/papaw-deflate-aarch64
asset_name: papaw-deflate-aarch64
asset_content_type: application/x-executable
- name: Upload papaw-deflate-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -461,6 +524,15 @@ jobs:
asset_path: artifacts/papaw-lzma-x86_64
asset_name: papaw-lzma-x86_64
asset_content_type: application/x-executable
- name: Upload papaw-lzma-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/papaw-lzma-aarch64
asset_name: papaw-lzma-aarch64
asset_content_type: application/x-executable
- name: Upload papaw-lzma-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -515,6 +587,15 @@ jobs:
asset_path: artifacts/papaw-minlzma-x86_64
asset_name: papaw-minlzma-x86_64
asset_content_type: application/x-executable
- name: Upload papaw-minlzma-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/papaw-minlzma-aarch64
asset_name: papaw-minlzma-aarch64
asset_content_type: application/x-executable
- name: Upload papaw-minlzma-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -569,6 +650,15 @@ jobs:
asset_path: artifacts/papaw-xz-x86_64
asset_name: papaw-xz-x86_64
asset_content_type: application/x-executable
- name: Upload papaw-xz-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/papaw-xz-aarch64
asset_name: papaw-xz-aarch64
asset_content_type: application/x-executable
- name: Upload papaw-xz-mips
uses: actions/upload-release-asset@v1
env:
Expand Down Expand Up @@ -623,6 +713,15 @@ jobs:
asset_path: artifacts/papaw-zstd-x86_64
asset_name: papaw-zstd-x86_64
asset_content_type: application/x-executable
- name: Upload papaw-zstd-aarch64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: artifacts/papaw-zstd-aarch64
asset_name: papaw-zstd-aarch64
asset_content_type: application/x-executable
- name: Upload papaw-zstd-mips
uses: actions/upload-release-asset@v1
env:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of papaw.
#
# Copyright (c) 2020, 2021 Dima Krasner
# Copyright (c) 2020, 2021, 2022 Dima Krasner
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand All @@ -23,4 +23,4 @@
FROM ghcr.io/dimkr/containers/c-dev:clang

RUN apt-get -qq update && apt-get -y install binwalk
RUN for i in x86_64-any64-linux-musl arm-any32-linux-musleabi armeb-any32-linux-musleabi mips-any32-linux-musl mipsel-any32-linux-musl i386-any32-linux-musl; do wget -qO- https://github.com/dimkr/toolchains/releases/latest/download/$i.tar.gz | tar -xzf - -C /; done
RUN for i in x86_64-any64-linux-musl aarch64-any64-linux-musl arm-any32-linux-musleabi armeb-any32-linux-musleabi mips-any32-linux-musl mipsel-any32-linux-musl i386-any32-linux-musl; do wget -qO- https://github.com/dimkr/toolchains/releases/latest/download/$i.tar.gz | tar -xzf - -C /; done
4 changes: 2 additions & 2 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# This file is part of papaw.
#
# Copyright (c) 2020, 2021 Dima Krasner
# Copyright (c) 2020, 2021, 2022 Dima Krasner
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand All @@ -22,7 +22,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

toolchains="arm-any32-linux-musleabi armeb-any32-linux-musleabi i386-any32-linux-musl x86_64-any64-linux-musl mips-any32-linux-musl mipsel-any32-linux-musl"
toolchains="arm-any32-linux-musleabi armeb-any32-linux-musleabi aarch64-any64-linux-musl i386-any32-linux-musl x86_64-any64-linux-musl mips-any32-linux-musl mipsel-any32-linux-musl"

for i in $toolchains
do
Expand Down

0 comments on commit 1ec118a

Please sign in to comment.