From 3ec3b328cd7bfee09893acf46b912d700377ae8e Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Thu, 5 Oct 2023 09:25:18 -0400 Subject: [PATCH] remove deb builders --- .github/workflows/dev-debian.yml | 47 ---------------------- .github/workflows/rust-lint.yml | 2 +- .github/workflows/stable-debian.yml | 61 ----------------------------- 3 files changed, 1 insertion(+), 109 deletions(-) delete mode 100644 .github/workflows/dev-debian.yml delete mode 100644 .github/workflows/stable-debian.yml diff --git a/.github/workflows/dev-debian.yml b/.github/workflows/dev-debian.yml deleted file mode 100644 index 98dca53f2..000000000 --- a/.github/workflows/dev-debian.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Dev Debian package - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - release: - name: build and release - strategy: - matrix: - runner: [ubuntu-latest, ubicloud] - runs-on: ${{ matrix.runner }} - steps: - - name: checkout sources - uses: actions/checkout@v3 - with: - submodules: recursive - - - name: install system tools - run: | - sudo apt-get update - sudo apt-get install -y musl-tools protobuf-compiler gcc-multilib \ - protobuf-compiler libssl-dev pkg-config build-essential - - - name: install cargo binstall - run: | - curl -L --proto '=https' --tlsv1.2 -sSf\ - https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash - - - name: install cargo binaries - run: | - cargo binstall --no-confirm --no-symlinks cargo-deb - - - uses: dtolnay/rust-toolchain@stable - with: - targets: x86_64-unknown-linux-musl - - - name: build project release - working-directory: ./nexus - run: cargo build --release --target=x86_64-unknown-linux-musl - - - name: create peerdb-server deb package - working-directory: ./nexus/ - run: cargo deb --target=x86_64-unknown-linux-musl -p peerdb-server --no-build diff --git a/.github/workflows/rust-lint.yml b/.github/workflows/rust-lint.yml index d87b89195..2c623af99 100644 --- a/.github/workflows/rust-lint.yml +++ b/.github/workflows/rust-lint.yml @@ -13,7 +13,7 @@ jobs: pull-requests: write strategy: matrix: - runner: [ubicloud] + runner: [ubicloud-standard-4] runs-on: ${{ matrix.runner }} steps: - name: checkout diff --git a/.github/workflows/stable-debian.yml b/.github/workflows/stable-debian.yml deleted file mode 100644 index e9f3d3609..000000000 --- a/.github/workflows/stable-debian.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Stable Debian package - -on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' - -jobs: - release: - name: build and release - strategy: - matrix: - runner: [ubuntu-latest, ubicloud] - runs-on: ${{ matrix.runner }} - permissions: - contents: write - steps: - - name: checkout sources - uses: actions/checkout@v3 - with: - submodules: recursive - - - name: install system tools - run: | - sudo apt-get update - sudo apt-get install -y musl-tools protobuf-compiler gcc-multilib \ - protobuf-compiler libssl-dev pkg-config build-essential - - - name: install cargo binstall - run: | - curl -L --proto '=https' --tlsv1.2 -sSf\ - https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash - - - name: install cargo binaries - run: | - cargo binstall --no-confirm --no-symlinks cargo-deb - - - uses: dtolnay/rust-toolchain@stable - with: - targets: x86_64-unknown-linux-musl - - - name: Set Cargo version as Git tag - working-directory: ./nexus/server - run: | - export VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//') - sed -i "s/0.1.0/$VERSION/g" Cargo.toml - - - name: build project release - working-directory: ./nexus - run: cargo build --release --target=x86_64-unknown-linux-musl - - - name: create peerdb-server deb package - working-directory: ./nexus/ - run: cargo deb --target=x86_64-unknown-linux-musl -p peerdb-server --no-build - - - name: upload release artifacts - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: | - nexus/target/x86_64-unknown-linux-musl/debian/peerdb-server*.deb