diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 9e16a2d6745..a8a4b0552e3 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -12,86 +12,14 @@ permissions: contents: write jobs: - rust-releaser: - strategy: - matrix: - builds: - - os: macos-12 - target: x86_64-apple-darwin - exec_name: delta_diff - - os: macos-12 - target: aarch64-apple-darwin - exec_name: delta_diff - - os: ubuntu-20.04 - target: aarch64-unknown-linux-musl - exec_name: delta_diff - - os: ubuntu-20.04 - target: x86_64-unknown-linux-musl - exec_name: delta_diff - - os: windows-2022 - target: x86_64-pc-windows-msvc - exec_name: delta_diff.exe - - os: windows-2022 - target: aarch64-pc-windows-msvc - exec_name: delta_diff.exe - runs-on: ${{ matrix.builds.os }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.builds.target }} - override: true - - name: Rust Cache - id: cache-rust - uses: Swatinem/rust-cache@v2.2.1 - with: - workspaces: pkg/plugins/diff/delta_diff_server -> target - - name: Install Protoc - uses: arduino/setup-protoc@v1 - with: - version: '3.x' - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Run Cargo - uses: actions-rs/cargo@v1 - with: - command: build - args: --release --manifest-path pkg/plugins/diff/delta_diff_server/Cargo.toml - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: delta-${{ matrix.builds.target }} - path: pkg/plugins/diff/delta_diff_server/target/release/${{ matrix.builds.exec_name }} - if-no-files-found: error - goreleaser: runs-on: ubuntu-20.04 - needs: [rust-releaser] steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/download-artifact@v3 - id: download - with: - path: delta/artifacts - - - name: Rename artifacts to match goreleaser artifacts - working-directory: ${{steps.download.outputs.download-path}} - run: | - mv delta-aarch64-apple-darwin delta-darwin-arm64 - mv delta-x86_64-apple-darwin delta-darwin-amd64 - mv delta-aarch64-pc-windows-msvc delta-windows-arm64 - mv delta-x86_64-pc-windows-msvc delta-windows-amd64 - mv delta-aarch64-unknown-linux-musl delta-linux-arm64 - mv delta-x86_64-unknown-linux-musl delta-linux-amd64 - - name: Setup NodeJS uses: actions/setup-node@v4 with: diff --git a/Makefile b/Makefile index d03bb915d6a..0e37720c8d8 100644 --- a/Makefile +++ b/Makefile @@ -325,7 +325,3 @@ help: ## Show Help menu # helpers gen: gen-ui gen-api clients gen-docs - -delta-plugin: ## Build delta plugin - cargo clean --manifest-path pkg/plugins/diff/delta_diff_server/Cargo.toml - cargo build --release --manifest-path pkg/plugins/diff/delta_diff_server/Cargo.toml