-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a412bcc
commit 9544fc9
Showing
1 changed file
with
96 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: kx-kn-release | ||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set env | ||
run: echo "RELEASE_VERSION=v0.1.0" >> $GITHUB_ENV | ||
|
||
######## linux amd64 | ||
- name: kx-compile-linux | ||
id: kx-compile-linux | ||
uses: rust-build/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SRC_DIR: kx | ||
with: | ||
RUSTTARGET: x86_64-unknown-linux-musl | ||
ARCHIVE_TYPES: tar.gz | ||
ARCHIVE_NAME: kx-${{ env.RELEASE_VERSION }}-x86_64-linux-musl | ||
|
||
# - name: kn-compile-linux | ||
# id: kn-compile-linux | ||
# uses: rust-build/[email protected] | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# SRC_DIR: kn | ||
# with: | ||
# RUSTTARGET: x86_64-unknown-linux-musl | ||
# ARCHIVE_TYPES: tar.gz | ||
# ARCHIVE_NAME: kn-${{ env.RELEASE_VERSION }}-x86_64-linux-musl | ||
|
||
######## Windows amd64 | ||
- name: kx-compile-windows | ||
id: kx-compile-windows | ||
uses: rust-build/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SRC_DIR: kx | ||
with: | ||
RUSTTARGET: x86_64-pc-windows-gnu | ||
ARCHIVE_TYPES: tar.gz | ||
ARCHIVE_NAME: kx-${{ env.RELEASE_VERSION }}-x86_64-windows-gnu | ||
|
||
# - name: kn-compile-windows | ||
# id: kn-compile-windows | ||
# uses: rust-build/[email protected] | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# SRC_DIR: kn | ||
# with: | ||
# RUSTTARGET: x86_64-pc-windows-gnu | ||
# ARCHIVE_TYPES: tar.gz | ||
# ARCHIVE_NAME: kn-${{ env.RELEASE_VERSION }}-x86_64-windows-gnu | ||
|
||
######## darwin amd64 | ||
- name: kx-compile-darwin | ||
id: kx-compile-darwin | ||
uses: rust-build/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SRC_DIR: kx | ||
with: | ||
RUSTTARGET: x86_64-apple-darwin | ||
ARCHIVE_TYPES: tar.gz | ||
ARCHIVE_NAME: kx-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin | ||
|
||
# - name: kn-compile-darwin | ||
# id: kn-compile-darwin | ||
# uses: rust-build/[email protected] | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# SRC_DIR: kn | ||
# with: | ||
# RUSTTARGET: x86_64-apple-darwin | ||
# ARCHIVE_TYPES: tar.gz | ||
# ARCHIVE_NAME: kn-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin | ||
- name: Release | ||
uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
automatic_release_tag: ${{ env.RELEASE_VERSION }} | ||
prerelease: false | ||
title: "${{ env.RELEASE_VERSION }}" | ||
files: | | ||
# ${{ steps.kn-compile-linux.outputs.BUILT_ARCHIVE }} | ||
${{ steps.kx-compile-linux.outputs.BUILT_ARCHIVE }} | ||
# ${{ steps.kn-compile-windows.outputs.BUILT_ARCHIVE }} | ||
${{ steps.kx-compile-windows.outputs.BUILT_ARCHIVE }} | ||
# ${{ steps.kn-compile-darwin.outputs.BUILT_ARCHIVE }} | ||
${{ steps.kx-compile-darwin.outputs.BUILT_ARCHIVE }} |