feat: add demo workflows
All checks were successful
Caching Primes / build (push) Successful in 9s
/ ls (push) Successful in 4s

This commit is contained in:
kiper220 2025-02-07 22:48:39 +04:00
parent 5fd75b2221
commit a5430fb5fb
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 072C9617CC7CD104
4 changed files with 112 additions and 0 deletions

View 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

View file

@ -0,0 +1,8 @@
on: [push]
jobs:
ls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
ls ${{ github.workspace }}