-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from jakewilkins/arch_dependent_dependencies
Architecture dependent dependencies
- Loading branch information
Showing
8 changed files
with
102 additions
and
2 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,19 @@ | ||
[package] | ||
name = "github-device-flow" | ||
version = "0.1.4" | ||
edition = "2021" | ||
description = "Binary and library for performing the GitHub Device Flow" | ||
license = "MIT" | ||
exclude = ["/script"] | ||
repository = "https://github.com/jakewilkins/gh-device-flow" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
reqwest = { version = "0.11", features = ["blocking", "json", "native-tls-vendored"] } | ||
chrono = "0.4.26" | ||
serde = "1.0.143" | ||
serde_derive = "1.0.143" | ||
serde_json = "1.0" | ||
clap = { version = "3.2.17", features = ["derive"] } | ||
|
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,5 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source ./script/openssl-dep-tools.sh | ||
|
||
trap reset EXIT | ||
|
||
setup | ||
|
||
docker run --rm -v "$(pwd)":/home/rust/src messense/rust-musl-cross:arm-musleabihf cargo build --release | ||
|
||
docker run --rm -v "$(pwd)":/home/rust/src messense/rust-musl-cross:arm-musleabihf musl-strip /home/rust/src/target/arm-unknown-linux-musleabihf/release/github-device-flow |
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,5 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source ./script/openssl-dep-tools.sh | ||
|
||
trap reset EXIT | ||
|
||
setup | ||
|
||
docker run --rm -v "$(pwd)":/home/rust/src messense/rust-musl-cross:armv7-musleabihf cargo build --release | ||
|
||
docker run --rm -v "$(pwd)":/home/rust/src messense/rust-musl-cross:armv7-musleabihf musl-strip /home/rust/src/target/armv7-unknown-linux-musleabihf/release/github-device-flow |
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,5 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source ./script/openssl-dep-tools.sh | ||
|
||
trap reset EXIT | ||
|
||
setup | ||
|
||
docker run --rm -v "$(pwd)":/home/rust/src messense/rust-musl-cross:x86_64-musl cargo build --release | ||
|
||
docker run --rm -v "$(pwd)":/home/rust/src messense/rust-musl-cross:x86_64-musl musl-strip /home/rust/src/target/x86_64-unknown-linux-musl/release/github-device-flow |
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,22 @@ | ||
function swp() { | ||
local tmp=${1##*/} | ||
mv "$1" "${tmp%.*}$2" | ||
} | ||
|
||
function reset() { | ||
echo "Exiting" | ||
if [ -f ./Cargo.bak ]; then | ||
echo "Resetting Cargo.toml" | ||
swp Cargo.toml .vendored_tls | ||
swp Cargo.bak .toml | ||
else | ||
echo "Not resetting Cargo.toml" | ||
fi | ||
} | ||
|
||
function setup() { | ||
echo "Setting up Cargo.toml for arm build" | ||
swp Cargo.toml .bak | ||
swp Cargo.vendored_tls .toml | ||
} | ||
|
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