Skip to content

Commit

Permalink
Create docker.yml (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xh3rman authored Jun 27, 2024
1 parent 838bce7 commit 9ff2a87
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Docker Build

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
unit_test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Docker Build
run: docker build --tag core .

0 comments on commit 9ff2a87

Please sign in to comment.