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
44 changes: 0 additions & 44 deletions .github/workflows/build.yml

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/push-pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Push/pull
on:
push:
pull_request:
jobs:
fmt:
name: Rust project - latest
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: cargo fmt
run: cd implant && cargo fmt && cd ../server && cargo fmt
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "GitHub Actions [Bot]"
git add -A
git commit -m "Automatic formatting" -a
git push
# build:
# name: Rust project - latest
# runs-on: ubuntu-latest
# strategy:
# matrix:
# # include:
# # - rust_target: x86_64-unknown-linux-gnu
# # artifact_name: tuxmux-glibc-amd64
# # - rust_target: x86_64-unknown-linux-musl
# # artifact_name: tuxmux-musl-amd64
# # - rust_target: aarch64-unknown-linux-gnu
# # artifact_name: tuxmux-glibc-aarch64
# # - rust_target: aarch64-unknown-linux-musl
# # artifact_name: tuxmux-musl-aarch64
# # - rust_target: armv7-unknown-linux-gnueabihf
# # artifact_name: tuxmux-glibc-aarch64
# toolchain:
# - stable
# steps:
# - uses: actions/checkout@v4
# - name: Set up Rust
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# target: ${{ matrix.rust_target }}
# - name: Building client binary
# run: cargo build --release --bin client --verbose
# - uses: actions/upload-artifact@v4
# with:
# name: tuxmux-client-glibc-amd64
# path: target/release/client
# if-no-files-found: error
# - name: Building server binary
# run: cargo build --release --bin server --verbose
# - uses: actions/upload-artifact@v4
# with:
# name: tuxmux-server-glibc-amd64
# path: target/release/server
# if-no-files-found: error
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
target/
a.out
implant
Loading
Loading