Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup rust build dependencies for rust projects #122

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions workflow-templates/appstore-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,31 @@ jobs:
cd ${{ env.APP_NAME }}
composer install --no-dev

- name: Check Cargo.toml
id: check_cargo
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
with:
files: "${{ env.APP_NAME }}/Cargo.toml"

- name: Install musl-tools
if: steps.check_cargo.outputs.files_exists == 'true'
run: |
sudo apt-get install musl-tools

- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
if: steps.check_cargo.outputs.files_exists == 'true'
with:
profile: minimal
toolchain: stable
override: true
target: x86_64-unknown-linux-musl

- name: Install cargo-cross
if: steps.check_cargo.outputs.files_exists == 'true'
run: |
cargo install cross --locked

- name: Build ${{ env.APP_NAME }}
# Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }}
Expand Down
Loading