-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
experiment: a
cross-target
package for establishing cross-compilati…
…on targets
- Loading branch information
Showing
19 changed files
with
2,801 additions
and
192 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,38 @@ | ||
name: cargo-cp-artifact | ||
|
||
on: | ||
push: | ||
# Prevent duplicate runs of this workflow on our own internal PRs. | ||
branches: | ||
- main | ||
- next/* | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled] | ||
branches: | ||
- main | ||
- next/* | ||
|
||
jobs: | ||
matrix: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
includes: ${{ steps.define.includes }} | ||
steps: | ||
- name: Define Cross-Compilation Target Matrix | ||
id: define | ||
uses: dherman/target-matrix@v1 | ||
with: | ||
toolchain: rust | ||
windows-latest: x86_64-pc-windows-msvc | ||
macos-latest: x86_64-apple-darwin | ||
ubuntu-latest: x86_64-unknown-linux-gnu x86_64-unknown-freebsd x86_64-unknown-openbsd | ||
|
||
build: | ||
needs: matrix | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
includes: ${{ needs.matrix.includes }} | ||
steps: | ||
- name: Show Target | ||
run: echo "${{ matrix.target }}" |
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,6 +1,7 @@ | ||
mod artifact; | ||
mod cargo; | ||
mod cli; | ||
mod copy; | ||
|
||
use cargo::Status; | ||
|
||
|
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
Oops, something went wrong.