-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (52 loc) · 1.47 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: ci
on:
push:
branches:
- main
- development
paths:
- 'app-crypt/**'
- 'dev-python/**'
- '.github/workflows/**'
pull_request:
branches:
- main
- development
paths:
- 'app-crypt/**'
- 'dev-python/**'
schedule:
- cron: '0 1 * * *'
jobs:
ci_job:
runs-on: ubuntu-latest
name: CI
steps:
- name: Get year/month
id: get-year-month
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m")"
shell: bash
- name: Check out the repo
uses: actions/checkout@v3
- name: Cache portage binary packages
uses: actions/cache@v2
env:
cache-name: cache-binpgks
with:
path: var/cache/binpkgs/**
key: ${{ runner.os }}-${{ env.cache-name }}-${{ secrets.CACHE_VERSION }}-${{ steps.get-year-month.outputs.date }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-${{ secrets.CACHE_VERSION }}-
- name: Cache portage distfiles
uses: actions/cache@v2
env:
cache-name: cache-distfiles
with:
path: var/cache/distfiles/**
key: ${{ runner.os }}-${{ env.cache-name }}-${{ secrets.CACHE_VERSION }}-${{ steps.get-year-month.outputs.date }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-${{ secrets.CACHE_VERSION }}-
- name: CI
id: docker
uses: osirisinferi/[email protected]