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

Self-hosted cargo-cp-artifact #971

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
38 changes: 38 additions & 0 deletions .github/workflows/cross.yml
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 }}"
174 changes: 164 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
members = [
"crates/*",
"test/*",
"pkgs/cargo-cp-artifact",
]
13 changes: 13 additions & 0 deletions crates/cargo-cp-artifact/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "cargo-cp-artifact"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[[bin]]
name = "cargo-cp-artifact"
path = "src/bin.rs"

[dependencies]
cargo_metadata = "0.15.3"
Loading