mirror of
https://github.com/eosswedenorg/eth-healthcheck
synced 2026-06-16 05:04:55 +02:00
.github/workflows/package.yml: adding cross compilation
This commit is contained in:
parent
fc43d80f33
commit
aa9c2b350f
1 changed files with 27 additions and 0 deletions
27
.github/workflows/package.yml
vendored
27
.github/workflows/package.yml
vendored
|
|
@ -34,3 +34,30 @@ jobs:
|
|||
asset_name: ${{ steps.package.outputs.name }}
|
||||
asset_path: ${{ steps.package.outputs.filename }}
|
||||
asset_content_type: application/x-deb
|
||||
cross-compile:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ linux, freebsd ]
|
||||
arch: [ 386, amd64, arm, arm64 ]
|
||||
name: ${{matrix.os}}-${{matrix.arch}}
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: compile
|
||||
id: compile
|
||||
run: |
|
||||
./compile.sh --target ${{matrix.os}} -a ${{matrix.arch}}
|
||||
FILE=$(find build -type f | head -1)
|
||||
echo "::set-output name=filename::$FILE"
|
||||
echo "::set-output name=name::$(basename $FILE)"
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_name: ${{ steps.compile.outputs.name }}-${{matrix.os}}-${{matrix.arch}}
|
||||
asset_path: ${{ steps.compile.outputs.filename }}
|
||||
asset_content_type: application/octet-stream
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue