Skip to content

Commit

Permalink
arm build has been added to release
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-nereca committed May 9, 2022
1 parent 40d0d0d commit d1a2586
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ jobs:
tar czvf "${release_name}.tar.gz" "$release_name"
# Delete output directory
rm -r "$release_name"
- name: Build linux ARM64
shell: bash
run: |
version=${{ steps.version.outputs.semver }}
release_name="sfcli-${{ steps.version.outputs.full_version }}-linux-arm64"
# Build everything
dotnet publish -c Release -o "$release_name" -p:Version=$version --self-contained true -p:PublishSingleFile=true --runtime "linux-arm64" -p:IncludeAllContentForSelfExtract=true -p:IncludeAllContentForSelfExtract=true ./SmartFace.Cli/SmartFace.Cli.csproj
# Pack files
tar czvf "${release_name}.tar.gz" "$release_name"
# Delete output directory
rm -r "$release_name"
- name: Build windows
shell: bash
run: |
Expand Down Expand Up @@ -70,6 +81,15 @@ jobs:
asset_path: sfcli-${{ steps.version.outputs.full_version }}-linux-x64.tar.gz
asset_name: sfcli-${{ steps.version.outputs.full_version }}-linux-x64.tar.gz
asset_content_type: application/gzip
- name: upload linux arm artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: sfcli-${{ steps.version.outputs.full_version }}-linux-arm64.tar.gz
asset_name: sfcli-${{ steps.version.outputs.full_version }}-linux-arm64.tar.gz
asset_content_type: application/gzip
- name: upload windows artifact
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit d1a2586

Please sign in to comment.