diff options
| author | diogo464 <[email protected]> | 2024-01-18 06:52:34 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2024-01-18 06:52:34 +0000 |
| commit | 5b48457beb82b38f1a003af1ee34a3a7ad291af1 (patch) | |
| tree | af5d5bfa79c9e0c0ad9bf48a836f81c17d32c74c | |
| parent | 02ab6c1d12b2414f7a3a4e120896640a64ce58f6 (diff) | |
removed github workflows
| -rw-r--r-- | .github/dependabot.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 67 | ||||
| -rw-r--r-- | .github/workflows/rust.yml | 67 | ||||
| -rwxr-xr-x | prepare_binaries.sh | 13 |
4 files changed, 0 insertions, 153 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 2cebf5b..0000000 --- a/.github/dependabot.yml +++ /dev/null | |||
| @@ -1,6 +0,0 @@ | |||
| 1 | version: 2 | ||
| 2 | updates: | ||
| 3 | - package-ecosystem: "cargo" | ||
| 4 | directory: "/" | ||
| 5 | schedule: | ||
| 6 | interval: "monthly" | ||
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index a5928d0..0000000 --- a/.github/workflows/release.yml +++ /dev/null | |||
| @@ -1,67 +0,0 @@ | |||
| 1 | name: release | ||
| 2 | on: | ||
| 3 | push: | ||
| 4 | tags: | ||
| 5 | - "[0-9]+.[0-9]+.[0-9]+" | ||
| 6 | |||
| 7 | jobs: | ||
| 8 | build-linux: | ||
| 9 | runs-on: ubuntu-latest | ||
| 10 | |||
| 11 | steps: | ||
| 12 | - uses: actions/checkout@v3 | ||
| 13 | |||
| 14 | - name: Install latest nightly | ||
| 15 | uses: actions-rs/toolchain@v1 | ||
| 16 | with: | ||
| 17 | toolchain: nightly | ||
| 18 | override: true | ||
| 19 | |||
| 20 | - name: Build binaries | ||
| 21 | run: ./prepare_binaries.sh linux | ||
| 22 | |||
| 23 | - uses: actions/upload-artifact@master | ||
| 24 | with: | ||
| 25 | name: dotup-linux-x64 | ||
| 26 | path: dotup_x86_64-unknown-linux-musl | ||
| 27 | |||
| 28 | build-macos: | ||
| 29 | runs-on: macos-12 | ||
| 30 | |||
| 31 | steps: | ||
| 32 | - uses: actions/checkout@v3 | ||
| 33 | |||
| 34 | - name: Install latest nightly | ||
| 35 | uses: actions-rs/toolchain@v1 | ||
| 36 | with: | ||
| 37 | toolchain: nightly | ||
| 38 | override: true | ||
| 39 | |||
| 40 | - name: Build binaries | ||
| 41 | run: ./prepare_binaries.sh macos | ||
| 42 | |||
| 43 | - uses: actions/upload-artifact@master | ||
| 44 | with: | ||
| 45 | name: dotup-macos-x64 | ||
| 46 | path: dotup_x86_64-apple-darwin | ||
| 47 | |||
| 48 | release: | ||
| 49 | runs-on: ubuntu-latest | ||
| 50 | needs: [build-linux, build-macos] | ||
| 51 | steps: | ||
| 52 | - name: Download linux binary | ||
| 53 | uses: actions/download-artifact@master | ||
| 54 | with: | ||
| 55 | name: dotup-linux-x64 | ||
| 56 | path: . | ||
| 57 | |||
| 58 | - name: Download macos binary | ||
| 59 | uses: actions/download-artifact@master | ||
| 60 | with: | ||
| 61 | name: dotup-macos-x64 | ||
| 62 | path: . | ||
| 63 | |||
| 64 | - name: Release | ||
| 65 | uses: softprops/action-gh-release@v1 | ||
| 66 | with: | ||
| 67 | files: dotup_* | ||
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml deleted file mode 100644 index 18ac596..0000000 --- a/.github/workflows/rust.yml +++ /dev/null | |||
| @@ -1,67 +0,0 @@ | |||
| 1 | name: Rust | ||
| 2 | |||
| 3 | on: [push, pull_request] | ||
| 4 | |||
| 5 | env: | ||
| 6 | CARGO_TERM_COLOR: always | ||
| 7 | |||
| 8 | jobs: | ||
| 9 | check: | ||
| 10 | name: Check | ||
| 11 | runs-on: ubuntu-latest | ||
| 12 | steps: | ||
| 13 | - uses: actions/checkout@v2 | ||
| 14 | - uses: actions-rs/toolchain@v1 | ||
| 15 | with: | ||
| 16 | profile: minimal | ||
| 17 | toolchain: nightly | ||
| 18 | override: true | ||
| 19 | - uses: actions-rs/cargo@v1 | ||
| 20 | with: | ||
| 21 | command: check | ||
| 22 | |||
| 23 | test: | ||
| 24 | name: Test Suite | ||
| 25 | runs-on: ubuntu-latest | ||
| 26 | steps: | ||
| 27 | - uses: actions/checkout@v2 | ||
| 28 | - uses: actions-rs/toolchain@v1 | ||
| 29 | with: | ||
| 30 | profile: minimal | ||
| 31 | toolchain: nightly | ||
| 32 | override: true | ||
| 33 | - uses: actions-rs/cargo@v1 | ||
| 34 | with: | ||
| 35 | command: test | ||
| 36 | |||
| 37 | fmt: | ||
| 38 | name: Rustfmt | ||
| 39 | runs-on: ubuntu-latest | ||
| 40 | steps: | ||
| 41 | - uses: actions/checkout@v2 | ||
| 42 | - uses: actions-rs/toolchain@v1 | ||
| 43 | with: | ||
| 44 | profile: minimal | ||
| 45 | toolchain: nightly | ||
| 46 | override: true | ||
| 47 | - run: rustup component add rustfmt | ||
| 48 | - uses: actions-rs/cargo@v1 | ||
| 49 | with: | ||
| 50 | command: fmt | ||
| 51 | args: --all -- --check | ||
| 52 | |||
| 53 | clippy: | ||
| 54 | name: Clippy | ||
| 55 | runs-on: ubuntu-latest | ||
| 56 | steps: | ||
| 57 | - uses: actions/checkout@v2 | ||
| 58 | - uses: actions-rs/toolchain@v1 | ||
| 59 | with: | ||
| 60 | profile: minimal | ||
| 61 | toolchain: nightly | ||
| 62 | override: true | ||
| 63 | - run: rustup component add clippy | ||
| 64 | - uses: actions-rs/cargo@v1 | ||
| 65 | with: | ||
| 66 | command: clippy | ||
| 67 | args: -- -D warnings | ||
diff --git a/prepare_binaries.sh b/prepare_binaries.sh deleted file mode 100755 index ad74552..0000000 --- a/prepare_binaries.sh +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if [ "$1" = "linux" ]; then | ||
| 4 | rustup target install x86_64-unknown-linux-musl || exit 1 | ||
| 5 | cargo build --target-dir target/ --target x86_64-unknown-linux-musl --release || exit 1 | ||
| 6 | mv target/x86_64-unknown-linux-musl/release/dotup "dotup_x86_64-unknown-linux-musl" | ||
| 7 | fi | ||
| 8 | |||
| 9 | if [ "$1" = "macos" ]; then | ||
| 10 | rustup target install x86_64-apple-darwin || exit 1 | ||
| 11 | cargo build --target-dir target/ --target x86_64-apple-darwin --release || exit 1 | ||
| 12 | mv target/x86_64-apple-darwin/release/dotup "dotup_x86_64-apple-darwin" | ||
| 13 | fi | ||
