Skip to content

Commit

Permalink
Merge pull request #46 from acosta-brickabode/feature/gh-action-linux
Browse files Browse the repository at this point in the history
feat: Implement Github Action for generating Linux artifact
  • Loading branch information
johanneshahn committed Mar 8, 2022
2 parents 51f74a3 + eb1a068 commit 3a1b3f9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Rust

on:
push:
branches: [ 3.0.0-dev ]
pull_request:
branches: [ 3.0.0-dev ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Cache cargo registry
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-${{ matrix.backend }}-cargo-${{ hashFiles('**/Cargo.toml') }}

- name: Install dependencies
run: sudo apt-get install -y build-essential cmake git libgit2-dev clang zlib1g-dev pkg-config llvm

- name: Build project
run: cargo build --locked --release

- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: epic-linux-x86_64
path: ./target/release/epic
retention-days: 5

0 comments on commit 3a1b3f9

Please sign in to comment.