This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
-
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.
chore: add test for generic workspace
- Loading branch information
Showing
15 changed files
with
194 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
root fake changelog! |
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 @@ | ||
root fake license! |
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 @@ | ||
root fake readme! |
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,2 @@ | ||
[workspace] | ||
members = ["generic1", "generic2"] |
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 @@ | ||
inner fake changelog! |
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 @@ | ||
inner fake license! |
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,13 @@ | ||
CC := gcc | ||
RM := rm | ||
EXEEXT := | ||
|
||
all: main$(EXEEXT) | ||
|
||
main$(EXEEXT): | ||
$(CC) main.c -o main$(EXEEXT) | ||
|
||
clean: | ||
$(RM) -f main$(EXEEXT) | ||
|
||
.PHONY: all clean |
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 @@ | ||
inner fake readme! |
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,47 @@ | ||
[package] | ||
name = "generic1" | ||
description = "A test of a C program for cargo-dist" | ||
version = "0.0.1" | ||
license = "WTFPL" | ||
repository = "https://github.com/mistydemeo/testprog" | ||
binaries = ["main"] | ||
build-command = ["make"] | ||
|
||
# Config for 'cargo dist' | ||
[workspace.metadata.dist] | ||
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) | ||
cargo-dist-version = "0.4.2" | ||
# CI backends to support | ||
ci = ["github"] | ||
# The installers to generate for each app | ||
installers = ["shell", "homebrew"] | ||
# Target platforms to build apps for (Rust target-triple syntax) | ||
targets = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-musl"] | ||
# The archive format to use for windows builds (defaults .zip) | ||
windows-archive = ".tar.gz" | ||
# The archive format to use for non-windows builds (defaults .tar.xz) | ||
unix-archive = ".tar.gz" | ||
# A namespace to use when publishing this package to the npm registry | ||
npm-scope = "@axodotdev" | ||
# A GitHub repo to push Homebrew formulas to | ||
tap = "mistydemeo/homebrew-cargodisttest" | ||
# Publish jobs to run in CI | ||
publish-jobs = ["homebrew"] | ||
# Whether cargo-dist should create a Github Release or use an existing draft | ||
create-release = false | ||
# Whether to publish prereleases to package managers | ||
publish-prereleases = true | ||
# Publish jobs to run in CI | ||
pr-run-mode = "plan" | ||
|
||
[workspace.metadata.dist.dependencies.homebrew] | ||
cmake = { targets = ["x86_64-apple-darwin"] } | ||
libcue = { version = "2.2.1", targets = ["x86_64-apple-darwin"] } | ||
|
||
[workspace.metadata.dist.dependencies.apt] | ||
cmake = '*' | ||
libcue-dev = { version = "2.2.1-2" } | ||
|
||
[workspace.metadata.dist.dependencies.chocolatey] | ||
lftp = '*' | ||
cmake = '3.27.6' |
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,3 @@ | ||
#include <stdio.h> | ||
|
||
int main() { puts("Hello, cargo-dist!"); } |
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,13 @@ | ||
CC := gcc | ||
RM := rm | ||
EXEEXT := | ||
|
||
all: main$(EXEEXT) | ||
|
||
main$(EXEEXT): | ||
$(CC) main.c -o main$(EXEEXT) | ||
|
||
clean: | ||
$(RM) -f main$(EXEEXT) | ||
|
||
.PHONY: all clean |
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,47 @@ | ||
[package] | ||
name = "generic2" | ||
description = "A test of a C program for cargo-dist" | ||
version = "0.0.1" | ||
license = "WTFPL" | ||
repository = "https://github.com/mistydemeo/testprog" | ||
binaries = ["main"] | ||
build-command = ["make"] | ||
|
||
# Config for 'cargo dist' | ||
[workspace.metadata.dist] | ||
# The preferred cargo-dist version to use in CI (Cargo.toml SemVer syntax) | ||
cargo-dist-version = "0.4.2" | ||
# CI backends to support | ||
ci = ["github"] | ||
# The installers to generate for each app | ||
installers = ["shell", "homebrew"] | ||
# Target platforms to build apps for (Rust target-triple syntax) | ||
targets = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-musl"] | ||
# The archive format to use for windows builds (defaults .zip) | ||
windows-archive = ".tar.gz" | ||
# The archive format to use for non-windows builds (defaults .tar.xz) | ||
unix-archive = ".tar.gz" | ||
# A namespace to use when publishing this package to the npm registry | ||
npm-scope = "@axodotdev" | ||
# A GitHub repo to push Homebrew formulas to | ||
tap = "mistydemeo/homebrew-cargodisttest" | ||
# Publish jobs to run in CI | ||
publish-jobs = ["homebrew"] | ||
# Whether cargo-dist should create a Github Release or use an existing draft | ||
create-release = false | ||
# Whether to publish prereleases to package managers | ||
publish-prereleases = true | ||
# Publish jobs to run in CI | ||
pr-run-mode = "plan" | ||
|
||
[workspace.metadata.dist.dependencies.homebrew] | ||
cmake = { targets = ["x86_64-apple-darwin"] } | ||
libcue = { version = "2.2.1", targets = ["x86_64-apple-darwin"] } | ||
|
||
[workspace.metadata.dist.dependencies.apt] | ||
cmake = '*' | ||
libcue-dev = { version = "2.2.1-2" } | ||
|
||
[workspace.metadata.dist.dependencies.chocolatey] | ||
lftp = '*' | ||
cmake = '3.27.6' |
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,3 @@ | ||
#include <stdio.h> | ||
|
||
int main() { puts("Hello, cargo-dist!"); } |