mirror of
https://github.com/apognu/tuigreet.git
synced 2024-09-11 15:38:04 +03:00
Edit CI to build unpublished releases for development branches.
This commit is contained in:
parent
b1bffe700a
commit
0c5b66df2d
52
.github/workflows/branch.yml
vendored
Normal file
52
.github/workflows/branch.yml
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
name: Development unpublished build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'dev/*'
|
||||
|
||||
jobs:
|
||||
clippy:
|
||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
|
||||
build:
|
||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||
strategy:
|
||||
matrix:
|
||||
arch:
|
||||
- { name: 'x86_64', os: 'ubuntu-latest', target: 'x86_64-unknown-linux-gnu', cross: false }
|
||||
- { name: 'i686', os: 'ubuntu-latest', target: 'i686-unknown-linux-gnu', cross: true }
|
||||
- { name: 'armv7h', os: 'ubuntu-latest', target: 'armv7-unknown-linux-gnueabihf', cross: true }
|
||||
- { name: 'aarch64', os: 'ubuntu-latest', target: 'aarch64-unknown-linux-gnu', cross: true }
|
||||
runs-on: ${{ matrix.arch.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: target/
|
||||
key: cargo-cache-${{ matrix.arch.target }}
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --target=${{ matrix.arch.target }}
|
||||
use-cross: ${{ matrix.arch.cross }}
|
||||
- name: Rename artifact
|
||||
run: mv target/${{ matrix.arch.target }}/release/tuigreet target/${{ matrix.arch.target }}/release/tuigreet-dev-${{ matrix.arch.name }}
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: tuigreet-dev-${{ matrix.arch.name }}
|
||||
path: target/${{ matrix.arch.target }}/release/tuigreet-dev-${{ matrix.arch.name }}
|
Loading…
Reference in New Issue
Block a user