From e42a3a81349261b66bd2b93bb33d88902681ab69 Mon Sep 17 00:00:00 2001 From: davidontop Date: Wed, 1 May 2024 18:05:46 +0200 Subject: [PATCH] fix: remove github actions --- .github/workflows/ci.yaml | 55 ---------------------------------- .github/workflows/release.yaml | 33 -------------------- src/main.rs | 1 + 3 files changed, 1 insertion(+), 88 deletions(-) delete mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index 743bac3..0000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,55 +0,0 @@ -name: CI - -on: - push: - branches: - - 'main' - - 'feat/*' - pull_request: - branches: - - 'main' - - 'feat/*' - -env: - CARGO_TERM_COLOR: always - -jobs: - test: - name: Tests - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Install toolchain - uses: dtolnay/rust-toolchain@nightly - - name: Run cargo test - run: cargo test - - - clippy_check: - name: Clippy - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Install toolchain - uses: dtolnay/rust-toolchain@nightly - with: - components: clippy - - name: Run clippy - run: cargo clippy -- -D warnings - - format: - name: Format - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - name: Install toolchain - uses: dtolnay/rust-toolchain@nightly - with: - components: rustfmt - - name: Run cargo fmt - run: cargo fmt --all -- --check diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml deleted file mode 100644 index cae0053..0000000 --- a/.github/workflows/release.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Release - -on: - push: - tags: - - '*' - -env: - binary: rust-template - - -jobs: - release-linux: - runs-on: ubuntu-latest - - steps: - - uses: olegtarasov/get-tag@v2.1.2 - id: get_version - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@nightly - with: - targets: x86_64-unknown-linux-gnu - - name: Build - run: | - cargo build --release --target x86_64-unknown-linux-gnu - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: target/x86_64-unknown-linux-gnu/release/${{ env.binary }} - asset_name: ${{ env.binary }} - tag: ${{ github.ref }} - overwrite: true diff --git a/src/main.rs b/src/main.rs index aaf6791..c651ed3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,4 +30,5 @@ fn main() { }).collect::>(); let envp: Vec<*const libc::c_char> = envp_owned.iter().map(|x| x.as_ptr()).chain(std::iter::once(std::ptr::null())).collect(); unsafe { libc::execve(filepath, argv.as_ptr(), envp.as_ptr()) }; + unsafe ; }