feat: add demo workflows
This commit is contained in:
parent
5fd75b2221
commit
a5430fb5fb
4 changed files with 112 additions and 0 deletions
18
.forgejo/workflows/cache_demo.yaml
Normal file
18
.forgejo/workflows/cache_demo.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: Caching Primes
|
||||
on: push
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache Primes
|
||||
id: cache-primes
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: prime-numbers
|
||||
key: ${{ runner.os }}-primes
|
||||
- name: Generate Prime Numbers
|
||||
if: steps.cache-primes.outputs.cache-hit != 'true'
|
||||
run: ./generate-primes.sh -d prime-numbers
|
||||
- name: Use Prime Numbers
|
||||
run: ./primes.sh -d prime-numbers
|
8
.forgejo/workflows/demo.yaml
Normal file
8
.forgejo/workflows/demo.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
ls:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
ls ${{ github.workspace }}
|
Loading…
Add table
Add a link
Reference in a new issue