accelerator/.github/workflows/cache.yml
sappho 1d60f3746a
overhaul -> overhaul (#21)
* overhaul the repository

add protobuf

change repo url

try to restore github python syntax highlighter

move breakpad into third_party, update packagescript

* AMBuildifying

remove unnecessary files

Move the git patching into ambuild

move lss to a patch

Add windows compilation support

remove breakpad.bat

move postlink libs

* Overhaul CI (#4)

* Dockerbuild (#5)

* make cwd_cmd spew stdout and stderr

* add proper docker build support

* Overhaul ci (#6)

* Setup CI

* fix checkout

* fix yaml syntax

* no fail fast

* setup CI cache

* Fix pip install

* remove pip git

* update actions, ditch node 16

* small syntax cleanups

* more CI changes

* github doc lied

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>

* final push for perfect dockerbuilds in every scenario that i have been able to find

* rename cicd->dockerbuild

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>

* Add readme, remode duplicate -fPIC

update names of dockerbuild folder in sh files

* cleanup dockerfile (#7)

* Update 0002-Write-FUNC-records-instead-of-PUBLIC-for-ELF-symbols.patch

* Statically link libz, libgcc & libstdc++

* fix submodule path

* Review change + comment patch

---------

Co-authored-by: Kenzzer <kenzzer@users.noreply.github.com>
Co-authored-by: Benoist <14257866+Kenzzer@users.noreply.github.com>
2024-10-10 21:59:28 -04:00

57 lines
1.5 KiB
YAML

name: Cache
on:
workflow_call:
outputs:
key:
value: ${{ jobs.cache.outputs.key }}
dir:
value: .cache
jobs:
cache:
name: Create cache
runs-on: 'ubuntu-latest'
outputs:
key: ${{ steps.cache-key.outputs.key }}
env:
SOURCEMOD_REF: 'e0e018c5ebcd11df9bab91b43d40bf148805c684'
AMBUILD_REF: '2d4620da4cdaf89cf25afc3577f920e6138ae7cd'
steps:
- uses: actions/checkout@v4
- name: Create cache key
run: |
echo "${{ env.SOURCEMOD_REF }}" >> cache-key
echo "${{ env.AMBUILD_REF }}" >> cache-key
- name: Output cache key
id: cache-key
run: |
ls -a
echo "key=cache-${{ hashFiles('cache-key') }}" >> $GITHUB_OUTPUT
- name: Retrieve the cache
id: cache
uses: actions/cache@v4
with:
path: .cache
key: ${{ steps.cache-key.outputs.key }}
enableCrossOsArchive: true
- uses: actions/checkout@v4
if: ${{ !steps.cache.outputs.cache-hit }}
name: SourceMod checkout
with:
repository: alliedmodders/sourcemod
ref: ${{ env.SOURCEMOD_REF }}
submodules: true
path: .cache/sourcemod
- uses: actions/checkout@v4
if: ${{ !steps.cache.outputs.cache-hit }}
name: AMBuild checkout
with:
repository: alliedmodders/ambuild
ref: ${{ env.AMBUILD_REF }}
path: .cache/ambuild