Zuckerberg fc5b3f0c24
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 31s
Example / Example (push) Successful in 2m49s
use nix cache
2023-10-01 16:32:18 -06:00

41 lines
1.1 KiB
YAML

name: Example
on: [push]
env:
DEBIAN_FRONTEND: noninteractive
jobs:
Example:
runs-on: ubuntu-latest
steps:
- run: node --version
- name: Install Nix
uses: https://github.com/cachix/install-nix-action@v23
with:
github_access_token: ${{ secrets.__GITHUB_TOKEN }}
extra_nix_config: |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= s0.koi-bebop.ts.net:OjbzD86YjyJZpCp9RWaQKANaflcpKhtzBMNP8I2aPUU=
substituters = https://cache.nixos.org/ http://s0.koi-bebop.ts.net:5000
- name: Install dependencies
run: nix profile install nixpkgs#nodejs-18_x
- name: Checkout the repository
uses: actions/checkout@v3
- name: Get ENV var names
run: printenv | cut -d'=' -f1
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: nix run nixpkgs#cowsay -- hello
- run: nix profile install nixpkgs#cowsay
- run: cowsay testing
- run: nix profile install nixpkgs#curl
- run: curl -I s0.koi-bebop.ts.net