forked from khyperia/weechat-discord
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Showing
27 changed files
with
1,357 additions
and
2,077 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,26 +1,20 @@ | ||
[package] | ||
name = "weecord" | ||
version = "0.1.0" | ||
authors = ["Porter Smith <[email protected]>", "khyperia <[email protected]>", "Noskcaj <[email protected]>"] | ||
build = "build.rs" | ||
name = "weechat-discord" | ||
version = "0.2.0" | ||
authors = ["Noskcaj <[email protected]>"] | ||
edition = "2018" | ||
|
||
[build-dependencies] | ||
pkg-config = "0.3.14" | ||
cc = "1.0.32" | ||
|
||
[lib] | ||
name = "weecord" | ||
name = "weechat_discord" | ||
crate-type = ["dylib"] | ||
|
||
[dependencies] | ||
libc = "0.2.51" | ||
libc = "0.2.60" | ||
parking_lot = "0.9.0" | ||
lazy_static = "1.3.0" | ||
dirs = "2.0.1" | ||
crossbeam-channel = "0.3.8" | ||
serde_json = "1.0.39" | ||
parking_lot = "0.9.0" | ||
threadpool = "1.7.1" | ||
crossbeam-channel = "0.3.9" | ||
json = "0.11.14" | ||
|
||
[dependencies.serenity] | ||
git = "https://github.com/terminal-discord/serenity" | ||
|
@@ -42,3 +36,4 @@ path = "parsing" | |
[dependencies.weechat] | ||
# path = "../rust-weechat/weechat-rs" | ||
git = "https://github.com/terminal-discord/rust-weechat" | ||
|
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
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 @@ | ||
trigger: | ||
- master | ||
|
||
jobs: | ||
- template: ci/azure-build-template.yml | ||
parameters: | ||
name: Linux | ||
vmImage: ubuntu-16.04 | ||
|
||
- template: ci/azure-build-template.yml | ||
parameters: | ||
name: macOS | ||
vmImage: macOS-10.13 |
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,55 @@ | ||
jobs: | ||
- job: ${{ parameters.name }} | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
steps: | ||
- ${{ if eq(parameters.name, 'Linux') }}: | ||
- script: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" | ||
rustup update stable | ||
displayName: Install rust | ||
- ${{ if eq(parameters.name, 'macOS') }}: | ||
- script: | | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" | ||
$HOME/.cargo/bin/rustup update stable | ||
displayName: Install rust | ||
- ${{ if eq(parameters.name, 'Linux') }}: | ||
- script: | | ||
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E | ||
sudo add-apt-repository "deb https://weechat.org/ubuntu $(lsb_release -cs) main" | ||
sudo apt update | ||
sudo apt install weechat-dev | ||
displayName: Install weechat | ||
- ${{ if eq(parameters.name, 'macOS') }}: | ||
- script: brew install weechat | ||
displayName: Install weechat | ||
|
||
- script: | | ||
rustc -Vv | ||
cargo -V | ||
displayName: Query rust and cargo versions | ||
- script: cargo build --release | ||
displayName: Build | ||
|
||
|
||
- script: cp target/release/libweechat_discord.* $(Build.ArtifactStagingDirectory)/ | ||
displayName: Copy artifacts | ||
|
||
- ${{ if eq(parameters.name, 'Linux') }}: | ||
# Linux. | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: 'weechat-discord-linux' | ||
displayName: Publish build artifacts | ||
- ${{ if eq(parameters.name, 'macOS') }}: | ||
# macOS. | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
artifactName: 'weechat-discord-macos' | ||
displayName: Publish build artifacts |
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,2 +1,4 @@ | ||
/target | ||
**/*.rs.bk | ||
|
||
Cargo.lock |
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,6 @@ | ||
fn main() { | ||
std::process::Command::new("make") | ||
.arg("test") | ||
.status() | ||
.unwrap(); | ||
} |
Oops, something went wrong.