Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
apognu committed Jan 9, 2023
0 parents commit 3b83c11
Show file tree
Hide file tree
Showing 21 changed files with 3,341 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/tip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Continuous master build

on:
push:
branches:
- master

jobs:
clippy:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: target/
key: cargo-clippy-cache-${{ matrix.arch.target }}
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-01-08
override: true
components: clippy
- 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-20.04', target: 'x86_64-unknown-linux-gnu', cross: false }
runs-on: ${{ matrix.arch.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
target/
key: cargo-build-cache-${{ matrix.arch.target }}
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-01-08
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features --target=${{ matrix.arch.target }}
use-cross: ${{ matrix.arch.cross }}
env:
JQ_LIB_DIR: /usr/lib/x86_64-linux-gnu
- name: Rename artifact
run: |
mv target/${{ matrix.arch.target }}/release/deckshot target/${{ matrix.arch.target }}/release/deckshot-tip-${{ matrix.arch.name }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: deckshot-tip-${{ matrix.arch.name }}
path: |
target/${{ matrix.arch.target }}/release/deckshot-tip-${{ matrix.arch.name }}
package:
runs-on: ubuntu-20.04
needs: [clippy, build]
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
with:
path: target/out
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: tip
title: Development build
prerelease: true
files: target/out/*/*
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/deckshot.yml
4 changes: 4 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn_args_density = "Compressed"
merge_imports = true
max_width = 200
tab_spaces = 2
Loading

0 comments on commit 3b83c11

Please sign in to comment.