Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 0 additions & 152 deletions .github/workflows/github-release.yml

This file was deleted.

137 changes: 137 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Release builds for Mac(64bit, Arm), Windows and Linux(64 bit, Arm)

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths-ignore:
- "docs/**"
- "helm/**"
- "assets/**"
- "**.md"

jobs:
build-linux:
name: Build for ${{matrix.target}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- aarch64-unknown-linux-gnu # linux(arm)
- x86_64-unknown-linux-gnu # linux(64 bit)
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal # minimal component installation (ie, no documentation)
target: ${{matrix.target}}
override: true

- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target ${{matrix.target}}

- name: Create Artifact
uses: actions/upload-artifact@v3
with:
name: Parseable_${{ matrix.target }}
path: target/${{ matrix.target }}/release/parseable

- name: Rename binary
run: |
mv target/${{ matrix.target }}/release/parseable Parseable_${{ matrix.target }}

- name: Publish Archive to Release Page
uses: softprops/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
draft: false
files: Parseable_${{ matrix.target }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
override: true

- name: Build
run: cargo build --all --release --target x86_64-pc-windows-msvc

- name: Create artifact for Windows
uses: actions/upload-artifact@v2
with:
name: Parseable_x86_64-pc-windows-msvc
path: target/x86_64-pc-windows-msvc/release/PARSEABLE.exe

- name: Rename binary
run: |
mv target/x86_64-pc-windows-msvc/release/PARSEABLE.exe Parseable_x86_64-pc-windows-msvc.exe

- name: Publish Archive to Release Page
uses: softprops/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
draft: false
files: Parseable_x86_64-pc-windows-msvc.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-mac:
runs-on: macos-latest
strategy:
matrix:
target:
- aarch64-apple-darwin
- x86_64-apple-darwin

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install latest rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: ${{ matrix.target }}
default: true
override: true

- name: Build
run: |
cargo build --release --target ${{ matrix.target }}
strip target/${{ matrix.target }}/release/Parseable

- name: Create artifact
uses: actions/upload-artifact@v2
with:
name: Parseable_${{ matrix.target }}
path: |
target/${{ matrix.target }}/release/Parseable

- name: Rename binary
run: |
mv target/${{ matrix.target }}/release/Parseable Parseable_${{ matrix.target }}

- name: Publish Archive to Release Page
uses: softprops/[email protected]
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
draft: false
files: Parseable_${{ matrix.target }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}