diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c6de36..6b61a49 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: diff --git a/Dockerfile b/Dockerfile index a2ebbf1..1b8145d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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 diff --git a/ci/build.sh b/ci/build.sh index 1924196..454fa7e 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -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 @@ -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