Skip to content

15th January 2022

Computer Science

CICD

Github Actions

  • New: Store file as a secret.

    If you want to store a file (multiline, binary...) as a secret, first encode it with base64:

    base64 -i < {{ file_path }} | tr -d '\n' | xclip -i -selection clipboard
    

    Then paste it to a new secret. To restore the file diring the workflow, add:

    - name: restore file
      run: echo ${{ secrets.SECRET }} | base64 -d > {{ file_path }}
    

GNULinux

Makefile

  • New: Paralelize steps.

    Add the following lines to the beginning of the Makefile:

    NPROCS = $(shell grep -c 'processor' /proc/cpuinfo)
    MAKEFLAGS += -j$(NPROCS)
    

Other

  • Correction: Add missing entries to nav.