Automatically update factorio version #272
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "cachix-x86_64" | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
jobs: | |
cachix-x86_64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: jlumbroso/free-disk-space@main | |
with: | |
tool-cache: true | |
- name: Setup Swap | |
shell: bash | |
run: | | |
SWAP_FILE=/swapfile | |
sudo fallocate -l 16G $SWAP_FILE | |
sudo chmod 600 $SWAP_FILE | |
sudo mkswap $SWAP_FILE | |
sudo swapon $SWAP_FILE | |
sudo sh -c 'echo 1 > /sys/module/zswap/parameters/enabled' | |
sudo sh -c 'echo zsmalloc > /sys/module/zswap/parameters/zpool' | |
sudo sh -c 'echo 50 > /sys/module/zswap/parameters/max_pool_percent' | |
free -h | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: nicpkgs | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: | | |
nix run .#build-everything-unsubstitutable https://nicpkgs.cachix.org |