Skip to content

Commit

Permalink
Updated deploy script to cross build again
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1N committed Mar 28, 2024
1 parent e9a3786 commit 519d5c2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 43 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
PLUGIN_NAME: coredump

jobs:
deploy:
Expand All @@ -20,53 +21,54 @@ jobs:
- os_name: linux-x86_64
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
extension: "*.so"
- os_name: linux-aarch64
os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
extension: "*.so"
- os_name: linux-arm
os: ubuntu-20.04
target: arm-unknown-linux-gnueabi
extension: "*.so"
- os_name: linux-i686
os: ubuntu-20.04
target: i686-unknown-linux-gnu
extension: "*.so"
- os_name: windows-aarch64
os: windows-latest
target: aarch64-pc-windows-msvc
extension: "*.dll"
- os_name: windows-i686
os: windows-latest
target: i686-pc-windows-msvc
extension: "*.dll"
- os_name: windows-x86_64
os: windows-latest
target: x86_64-pc-windows-msvc
extension: "*.dll"
- os_name: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
extension: "*.dylib"
- os_name: macOS-aarch64
os: macOS-latest
target: aarch64-apple-darwin
extension: "*.dylib"
toolchain:
- stable
steps:
- uses: actions/checkout@v4
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: "build"
target: ${{ matrix.platform.target }}
toolchain: ${{ matrix.toolchain }}
args: "--locked --release --all-features"
strip: true

- name: Install memflowup
run: cargo install --git https://github.com/memflow/memflowup

- name: Build and install plugin locally
run: memflowup --skip-version-check build --path .

- name: Upload locally installed plugin
run: |
echo "${{ secrets.MEMFLOW_REGISTRY_SIGNING_KEY}}" > ec-secp256k1-priv-key.pem
memflowup --skip-version-check push --token ${{ secrets.MEMFLOW_REGISTRY_TOKEN }} --priv-key ec-secp256k1-priv-key.pem coredump:latest
- run: echo "${{ secrets.MEMFLOW_REGISTRY_SIGNING_KEY}}" > ec-secp256k1-priv-key.pem
- name: Upload plugin (linux)
run: memflowup --skip-version-check push --token ${{ secrets.MEMFLOW_REGISTRY_TOKEN }} --priv-key ec-secp256k1-priv-key.pem target/${{ matrix.platform.target }}/release/libmemflow_${{ env. PLUGIN_NAME}}.so
if: matrix.platform.os == 'ubuntu-20.04'
- name: Upload plugin (windows)
run: memflowup --skip-version-check push --token ${{ secrets.MEMFLOW_REGISTRY_TOKEN }} --priv-key ec-secp256k1-priv-key.pem target/${{ matrix.platform.target }}/release/memflow_${{ env. PLUGIN_NAME}}.dll
if: matrix.platform.os == 'windows-latest'
- name: Upload plugin (mac)
run: memflowup --skip-version-check push --token ${{ secrets.MEMFLOW_REGISTRY_TOKEN }} --priv-key ec-secp256k1-priv-key.pem target/${{ matrix.platform.target }}/release/libmemflow_${{ env. PLUGIN_NAME}}.dylib
if: matrix.platform.os == 'macOS-latest'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The plugin can then be found in the `target/release/` directory and has to be co
To use the connector in a rust project just include it in your Cargo.toml

```
memflow-coredump = "=0.2.0-beta11"
memflow-coredump = "0.2"
```

## Arguments
Expand Down
25 changes: 0 additions & 25 deletions install.sh

This file was deleted.

0 comments on commit 519d5c2

Please sign in to comment.