Skip to content

Merge pull request #36 from SARDONYX-sard/features/implement-verify-p… #31

Merge pull request #36 from SARDONYX-sard/features/implement-verify-p…

Merge pull request #36 from SARDONYX-sard/features/implement-verify-p… #31

Workflow file for this run

name: Build(CLI)
on:
push:
branches: ["main"]
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
# Only the latest push job is executed when successive pushes are performed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
APP_NAME: hkxc
CARGO_TERM_COLOR: always
PROFILE: release
jobs:
build:
strategy:
fail-fast: false
matrix:
job:
# default features
- {
target: aarch64-apple-darwin,
os: macos-latest,
asset: serde-hkx-cli-aarch64-apple-darwin.tar.gz,
}
- {
target: x86_64-pc-windows-msvc,
os: windows-latest,
asset: serde-hkx-cli-x86_64-pc-windows-msvc.zip,
}
- {
target: x86_64-unknown-linux-gnu,
os: ubuntu-latest,
asset: serde-hkx-cli-x86_64-unknown-linux-gnu.tar.gz,
}
# extra_fmt(json) features
- {
target: aarch64-apple-darwin,
os: macos-latest,
asset: serde-hkx-cli-aarch64-apple-darwin-extra_fmt.tar.gz,
features: extra_fmt,
}
- {
target: x86_64-pc-windows-msvc,
os: windows-latest,
asset: serde-hkx-cli-x86_64-pc-windows-msvc-extra_fmt.zip,
features: extra_fmt,
}
- {
target: x86_64-unknown-linux-gnu,
os: ubuntu-latest,
asset: serde-hkx-cli-x86_64-unknown-linux-gnu-extra_fmt.tar.gz,
features: extra_fmt,
}
runs-on: ${{ matrix.job.os }}
steps:
- uses: actions/[email protected]
- name: Build and Compress
uses: ./.github/actions/build-and-compress
with:
target: ${{ matrix.job.target }}
profile: ${{ env.PROFILE }}
app_name: ${{ env.APP_NAME }}
asset_name: ${{ matrix.job.asset }}
features: ${{ matrix.job.features }}
# NOTE: For some reason, the artifact is not pre-compressed even though it is compressed. So we compress it.
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: ${{ matrix.job.asset }}
path: ./build/