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:
|
Build:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
run: |
|
run: |
|
||||||
apt update
|
apt update
|
||||||
apt install git cmake software-properties-common --yes
|
apt install git cmake software-properties-common --yes
|
||||||
|
|
||||||
- name: Add llvm package
|
- name: Add llvm package
|
||||||
run: |
|
run: |
|
||||||
wget https://apt.llvm.org/llvm.sh
|
wget https://apt.llvm.org/llvm.sh
|
||||||
chmod +x llvm.sh
|
chmod +x llvm.sh
|
||||||
./llvm.sh 18
|
./llvm.sh 18
|
||||||
|
|
||||||
|
- 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 -C Beef pull
|
||||||
|
|
||||||
- name: Clone Beef repository
|
- name: Clone Beef repository
|
||||||
|
if: steps.restore-beef-repository.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
git clone https://code.booklordofthe.dev/Extern/Beef Beef
|
git clone https://code.booklordofthe.dev/Extern/Beef Beef
|
||||||
|
|
||||||
- name: Run build.sh
|
- name: Run build.sh
|
||||||
run: |
|
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