Skip to content

Commit

Permalink
Merge branch 'ci/setting-up'
Browse files Browse the repository at this point in the history
  • Loading branch information
3N4N committed May 1, 2023
2 parents 85ed508 + ef98fa6 commit a2d9ac0
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on:
push:
branches:
- 'master'
- 'release-[0-9]+.[0-9]+'
- 'ci/*'

jobs:
Ubuntu:
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install MUSL toolchain
run: |
sudo apt update
sudo apt install -y musl-tools
rustup target add x86_64-unknown-linux-musl
- name: Build ${{ github.repository }}
run: |
cargo build --release --target x86_64-unknown-linux-musl
Windows:
runs-on: windows-2022
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Build ${{ github.repository }}
run: |
cargo build --release
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

jobs:
Ubuntu:
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install MUSL toolchain
run: |
sudo apt update
sudo apt install -y musl-tools
rustup target add x86_64-unknown-linux-musl
- name: Build ${{ github.repository }}
run: |
cargo build --release --target x86_64-unknown-linux-musl
file target/x86_64-unknown-linux-musl/release/twitchlink
- uses: actions/upload-artifact@v3
with:
name: twitchlink-linux64
path: target/x86_64-unknown-linux-musl/release/twitchlink

Windows:
runs-on: windows-2022
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Build ${{ github.repository }}
run: |
cargo build --release
- uses: actions/upload-artifact@v3
with:
name: twitchlink-win64
path: target/release/twitchlink.exe

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ edition = "2021"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = { version = "0.11.12", features = ["json", "blocking", "cookies"] }
reqwest = { version = "0.11.12", default-features = false, features = ["json", "blocking", "cookies", "rustls-tls"] }
dirs = "5.0.0"
regex = "1.0.0"

0 comments on commit a2d9ac0

Please sign in to comment.