Skip to content
Merged
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
24 changes: 9 additions & 15 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@ jobs:
image: ubuntu:16.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v6
- name: Install Essentials
run: |
apt-get update
apt-get upgrade -y
apt-get install -y curl gcc
- name: Install Rust Toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Build Artifact
run: cargo build -r
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v6
with:
name: Linux x64
path: target/release/strumbot
Expand All @@ -37,17 +35,15 @@ jobs:
runs-on: windows-2019
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v6
- name: Install Rust Toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
- name: Build Artifact
run: cargo build -r
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v6
with:
name: Windows x64
path: target/release/strumbot.exe
Expand All @@ -56,13 +52,11 @@ jobs:
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v6
- name: Install Rust Toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true
target: x86_64-apple-darwin
- name: Build Artifact (x64)
run: cargo build -r --target=x86_64-apple-darwin
Expand All @@ -74,7 +68,7 @@ jobs:
run:
lipo -create -output universal-strumbot target/**/release/strumbot
- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v6
with:
name: macOS universal
path: universal-strumbot
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
environment: DockerDeploy
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v6
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
username: minnced
password: ${{ secrets.DOCKER_TOKEN }}
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ jobs:
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Install required cargo
run: cargo install clippy-sarif sarif-fmt
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ jobs:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
override: true

- name: Run cargo-test
run: cargo test
Expand All @@ -33,6 +31,6 @@ jobs:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v6
- name: Test Docker Build
run: docker compose build
Loading