mirror of
https://github.com/progval/irctest.git
synced 2025-04-07 15:59:49 +00:00
Fix CI cache (#92)
it didn't work so far because you can't use variable in the path...
This commit is contained in:
49
.github/workflows/test-devel.yml
vendored
49
.github/workflows/test-devel.yml
vendored
@ -8,6 +8,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Create directories
|
- name: Create directories
|
||||||
run: cd ~/; mkdir -p .local/ go/
|
run: cd ~/; mkdir -p .local/ go/
|
||||||
|
- name: Cache Anope
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
key: 3-${{ runner.os }}-anope-2.0.9
|
||||||
|
path: '~/.cache
|
||||||
|
|
||||||
|
${{ github.workspace }}/anope
|
||||||
|
|
||||||
|
'
|
||||||
- name: Checkout Anope
|
- name: Checkout Anope
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@ -37,10 +46,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-hybrid-devel
|
key: 3-${{ runner.os }}-hybrid-devel
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/ircd-hybrid
|
${ github.workspace }/ircd-hybrid
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -105,10 +116,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-plexus4-devel
|
key: 3-${{ runner.os }}-plexus4-devel
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/placeholder
|
${ github.workspace }/placeholder
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -145,10 +158,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-solanum-devel
|
key: 3-${{ runner.os }}-solanum-devel
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/solanum
|
${ github.workspace }/solanum
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -183,10 +198,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-unrealircd-devel
|
key: 3-${{ runner.os }}-unrealircd-devel
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/unrealircd
|
${ github.workspace }/unrealircd
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
9
.github/workflows/test-devel_release.yml
vendored
9
.github/workflows/test-devel_release.yml
vendored
@ -8,6 +8,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Create directories
|
- name: Create directories
|
||||||
run: cd ~/; mkdir -p .local/ go/
|
run: cd ~/; mkdir -p .local/ go/
|
||||||
|
- name: Cache Anope
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
key: 3-${{ runner.os }}-anope-2.0.9
|
||||||
|
path: '~/.cache
|
||||||
|
|
||||||
|
${{ github.workspace }}/anope
|
||||||
|
|
||||||
|
'
|
||||||
- name: Checkout Anope
|
- name: Checkout Anope
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
59
.github/workflows/test-stable.yml
vendored
59
.github/workflows/test-stable.yml
vendored
@ -8,6 +8,15 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Create directories
|
- name: Create directories
|
||||||
run: cd ~/; mkdir -p .local/ go/
|
run: cd ~/; mkdir -p .local/ go/
|
||||||
|
- name: Cache Anope
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
key: 3-${{ runner.os }}-anope-2.0.9
|
||||||
|
path: '~/.cache
|
||||||
|
|
||||||
|
${{ github.workspace }}/anope
|
||||||
|
|
||||||
|
'
|
||||||
- name: Checkout Anope
|
- name: Checkout Anope
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
@ -37,10 +46,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-charybdis-stable
|
key: 3-${{ runner.os }}-charybdis-stable
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/charybdis
|
${ github.workspace }/charybdis
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -75,10 +86,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-hybrid-stable
|
key: 3-${{ runner.os }}-hybrid-stable
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/ircd-hybrid
|
${ github.workspace }/ircd-hybrid
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -143,10 +156,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-plexus4-stable
|
key: 3-${{ runner.os }}-plexus4-stable
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/placeholder
|
${ github.workspace }/placeholder
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -183,10 +198,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-solanum-stable
|
key: 3-${{ runner.os }}-solanum-stable
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/solanum
|
${ github.workspace }/solanum
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -221,10 +238,12 @@ jobs:
|
|||||||
- name: Cache dependencies
|
- name: Cache dependencies
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-unrealircd-stable
|
key: 3-${{ runner.os }}-unrealircd-stable
|
||||||
path: |-
|
path: '~/.cache
|
||||||
~/.cache
|
|
||||||
$GITHUB_WORKSPACE/unrealircd
|
${ github.workspace }/unrealircd
|
||||||
|
|
||||||
|
'
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.7
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
@ -96,8 +96,8 @@ def get_build_job(*, software_config, software_id, version_flavor):
|
|||||||
"name": "Cache dependencies",
|
"name": "Cache dependencies",
|
||||||
"uses": "actions/cache@v2",
|
"uses": "actions/cache@v2",
|
||||||
"with": {
|
"with": {
|
||||||
"path": script("~/.cache", f"$GITHUB_WORKSPACE/{path}"),
|
"path": f"~/.cache\n${{ github.workspace }}/{path}\n",
|
||||||
"key": "${{ runner.os }}-"
|
"key": "3-${{ runner.os }}-"
|
||||||
+ software_id
|
+ software_id
|
||||||
+ "-"
|
+ "-"
|
||||||
+ version_flavor.value,
|
+ version_flavor.value,
|
||||||
@ -249,6 +249,14 @@ def get_build_job_anope():
|
|||||||
"name": "Create directories",
|
"name": "Create directories",
|
||||||
"run": "cd ~/; mkdir -p .local/ go/",
|
"run": "cd ~/; mkdir -p .local/ go/",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Cache Anope",
|
||||||
|
"uses": "actions/cache@v2",
|
||||||
|
"with": {
|
||||||
|
"path": "~/.cache\n${{ github.workspace }}/anope\n",
|
||||||
|
"key": "3-${{ runner.os }}-anope-2.0.9",
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Checkout Anope",
|
"name": "Checkout Anope",
|
||||||
"uses": "actions/checkout@v2",
|
"uses": "actions/checkout@v2",
|
||||||
|
Reference in New Issue
Block a user