Update .forgejo/workflows/build.yml
This commit is contained in:
parent
ffaef5ef3f
commit
2839e1046b
1 changed files with 30 additions and 4 deletions
|
@ -7,18 +7,44 @@ jobs:
|
|||
|
||||
Build:
|
||||
steps:
|
||||
|
||||
- name: Install apt packages
|
||||
run: |
|
||||
apt update
|
||||
apt install git cmake software-properties-common --yes
|
||||
apt install git cmake software-properties-common --yes
|
||||
|
||||
- name: Add llvm package
|
||||
run: |
|
||||
wget https://apt.llvm.org/llvm.sh
|
||||
chmod +x llvm.sh
|
||||
./llvm.sh 18
|
||||
- name: Clone Beef repository
|
||||
|
||||
- name: Restore Beef repository
|
||||
id: cache-primes-restore
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
Beef
|
||||
key: BeefRepository
|
||||
|
||||
- name: Generate Prime Numbers
|
||||
if: steps.restore-beef-repository.outputs.cache-hit == 'true'
|
||||
run: |
|
||||
git clone https://code.booklordofthe.dev/Extern/Beef Beef
|
||||
git -C Beef pull
|
||||
|
||||
- name: Clone Beef repository
|
||||
if: steps.restore-beef-repository.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
git clone https://code.booklordofthe.dev/Extern/Beef Beef
|
||||
|
||||
- name: Run build.sh
|
||||
run: |
|
||||
Beef/bin/build.sh
|
||||
Beef/bin/build.sh
|
||||
|
||||
- name: Cache repository
|
||||
id: cache-primes-save
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
Beef
|
||||
key: BeefRepository
|
||||
|
|
Loading…
Add table
Reference in a new issue