mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-21 22:38:41 -06:00
update workflow
This commit is contained in:
parent
c1f3fe3db0
commit
ba95b1820c
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
|
@ -3,6 +3,8 @@ name: Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
@ -12,10 +14,15 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: awalsh128/cache-apt-pkgs-action@v1.3.0
|
- uses: awalsh128/cache-apt-pkgs-action@v1.3.0
|
||||||
|
if: runner.os == 'Linux'
|
||||||
with:
|
with:
|
||||||
packages: libudev-dev
|
packages: libudev-dev
|
||||||
version: 1.0
|
version: 1.0
|
||||||
|
@ -26,6 +33,7 @@ jobs:
|
||||||
--bin kubi
|
--bin kubi
|
||||||
--bin kubi-server
|
--bin kubi-server
|
||||||
- name: Create artifact
|
- name: Create artifact
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir artifact;
|
mkdir artifact;
|
||||||
cp ./target/release/kubi ./artifact;
|
cp ./target/release/kubi ./artifact;
|
||||||
|
@ -34,6 +42,21 @@ jobs:
|
||||||
cp ./Server.toml ./artifact;
|
cp ./Server.toml ./artifact;
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: linux-x64-release
|
name: ${{ runner.temp }}_${{ runner.arch }}
|
||||||
path: ./artifact/*
|
path: ./artifact/*
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
publish-release:
|
||||||
|
needs: build
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
path: ./artifacts
|
||||||
|
- uses: rlespinasse/github-slug-action@v4
|
||||||
|
- uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
tag: ${{ env.GITHUB_REF_SLUG_URL }}
|
||||||
|
makeLatest: true
|
||||||
|
artifacts: ./artifacts/*
|
||||||
|
|
6
Cargo.lock
generated
6
Cargo.lock
generated
|
@ -936,7 +936,7 @@ checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kubi"
|
name = "kubi"
|
||||||
version = "0.1.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"flume",
|
"flume",
|
||||||
|
@ -969,7 +969,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kubi-server"
|
name = "kubi-server"
|
||||||
version = "0.1.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"flume",
|
"flume",
|
||||||
|
@ -991,7 +991,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kubi-shared"
|
name = "kubi-shared"
|
||||||
version = "0.1.0"
|
version = "0.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"bracket-noise",
|
"bracket-noise",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "kubi-server"
|
name = "kubi-server"
|
||||||
version = "0.1.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "kubi-shared"
|
name = "kubi-shared"
|
||||||
version = "0.1.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "kubi"
|
name = "kubi"
|
||||||
version = "0.1.0"
|
version = "0.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue