feat: implement progress bar #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |