-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github action to install llvm (#3)
* Use github action to install llvm * Fix ci
- Loading branch information
Showing
5 changed files
with
90 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
name: Rust | ||
|
||
on: [push, pull_request] | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
matrix: | ||
ci-action: [bundle, dinghy] | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/cache@v2 | ||
|
@@ -25,24 +31,26 @@ jobs: | |
toolchain: stable | ||
target: x86_64-apple-ios | ||
|
||
- name: install clang | ||
run: brew install llvm | ||
- name: Install LLVM and Clang | ||
uses: KyleMayes/[email protected] | ||
with: | ||
version: "13.0" | ||
|
||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/[email protected] | ||
if: ${{ matrix.ci-action == 'dinghy' }} | ||
with: | ||
crate: cargo-dinghy | ||
version: latest | ||
|
||
- name: install cargo-bundle | ||
run: cargo install cargo-bundle --git https://github.com/burtonageo/cargo-bundle.git | ||
- name: run cargo-dinghy | ||
run: | | ||
make test | ||
if: ${{ matrix.ci-action == 'dinghy' }} | ||
run: make test | ||
|
||
- name: Build | ||
run: cargo build --verbose --target x86_64-apple-ios | ||
- name: install cargo-bundle | ||
if: ${{ matrix.ci-action == 'bundle' }} | ||
run: cargo install cargo-bundle --git https://github.com/burtonageo/cargo-bundle.git | ||
|
||
- name: Run cargo-bundle | ||
run: | | ||
make bundle-run | ||
if: ${{ matrix.ci-action == 'bundle' }} | ||
run: make bundle-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters