Skip to content

Commit

Permalink
Create ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MajdSehwail committed Jul 12, 2023
1 parent fe7c31b commit 36b64c6
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI Flows

on:
push:
branches:
- "**"

jobs:
compile:
name: Build Source
runs-on: ubuntu-20.04

steps:
- name: Check out code
uses: actions/checkout@v3

- uses: erlef/setup-beam@v1
with:
otp-version: "25"
elixir-version: "1.13.4"

- name: Cache Hex
id: cache-hex
uses: actions/cache@v3
with:
path: |
./deps
~/.hex
key: ${{ runner.os }}-mix-deps-${{ hashFiles('mix.lock', '**/mix.exs') }}
restore-keys: ${{ runner.os }}-mix-

- name: Compile
run: mix do deps.get, deps.compile, compile

- name: Cache build
uses: actions/cache@v3
with:
path: |
./_build
key: ${{ runner.os }}-mix-build-${{ github.run_number }}

0 comments on commit 36b64c6

Please sign in to comment.