Skip to content

Commit

Permalink
Remove rust releaser (#7288)
Browse files Browse the repository at this point in the history
  • Loading branch information
nopcoder authored Jan 18, 2024
1 parent b26921a commit b578693
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 76 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
Expand Down
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b578693

Please sign in to comment.