forked from rust-skia/rust-skia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
950e964
commit 29196ef
Showing
3 changed files
with
125 additions
and
49 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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
inputs: | ||
# TODO: do we need that, runner.os should be sufficient. | ||
host-os: | ||
description: 'The operating system of the host' | ||
required: true | ||
|
||
host-target: | ||
description: 'The target of the host' | ||
required: true | ||
|
||
rust-edition: | ||
description: 'The edition of rust to build with, like "stable" or "beta"' | ||
required: true | ||
|
||
features: | ||
description: 'The feature set to build all targets with.' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
# TODO: we could use actions here that set up | ||
# the OS based on runner.os | ||
steps: | ||
- name: Install Rust | ||
uses: hecrj/setup-rust-action@master | ||
with: | ||
rust-version: ${{ matrix.rust }} | ||
|
||
- name: Install Clippy | ||
run: | | ||
rustup component add clippy | ||
shell: bash | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
# depth 1 is default | ||
submodules: true | ||
|
||
# remove LLVM on macOS so that only Apple's clang is used | ||
- name: Remove LLVM (macOS) | ||
run: | | ||
brew uninstall llvm | ||
if: runner.os == 'macOS' | ||
|
||
- name: LLVM (Windows only) | ||
run: | | ||
choco install llvm | ||
if: runner.os == 'Windows' | ||
|
||
- name: Setup Python 2 (Windows only) | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '2.7.18' | ||
architecture: 'x64' | ||
if: runner.os == 'Windows' | ||
|
||
- name: Python Version (Windows only) | ||
run: | | ||
python --version | ||
if: runner.os == 'Windows' | ||
|
||
- name: Build Host Target | ||
uses: ./.github/actions/build-target | ||
with: | ||
target: '${{ inputs.host-target }}' | ||
features: '${{ inputs.features }}' | ||
runBinaries: true | ||
|
||
|
||
|
||
# - name: Run Clippy | ||
# run: cargo clippy -vv --release --workspace | ||
# shell: bash |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
inputs: | ||
target: | ||
description: 'The target to build.' | ||
required: true | ||
|
||
features: | ||
description: 'The features to build.' | ||
required: true | ||
|
||
runBinaries: | ||
description: 'Run test cases and examples?' | ||
default: false | ||
required: false | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: 'Add Rust target ${{ inputs.target }}' | ||
run: | | ||
rustup target add ${{ inputs.target }} | ||
shell: bash | ||
|
||
- name: 'Build all targets in skia-safe for ${{ inputs.target }} with features "${{ inputs.features }}"' | ||
run: | | ||
cargo clean | ||
(cd skia-safe && cargo build --release --features "${{ inputs.features }}" --all-targets --target ${{ inputs.target }} -vv) | ||
shell: bash |
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