Compare commits
4 Commits
releases/v
...
5-max-jobs
Author | SHA1 | Date | |
---|---|---|---|
ba979b5e7d | |||
67bd092214 | |||
f104d5a8aa | |||
d266f22fdb |
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -12,6 +12,8 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
# TODO: just commit it using github
|
||||
- run: git diff --exit-code
|
||||
- run: yarn test
|
||||
- name: Install Nix
|
||||
uses: ./
|
||||
|
@ -18,7 +18,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: cachix/install-nix-action@v1
|
||||
- uses: cachix/install-nix-action@v2
|
||||
- run: nix-build
|
||||
```
|
||||
|
||||
|
@ -30,7 +30,9 @@ function run() {
|
||||
const CERTS_PATH = home + '/.nix-profile/etc/ssl/certs/ca-bundle.crt';
|
||||
// Workaround a segfault: https://github.com/NixOS/nix/issues/2733
|
||||
yield exec.exec("sudo", ["mkdir", "-p", "/etc/nix"]);
|
||||
yield exec.exec("sudo", ["echo", "http2 = false", ">>", "/etc/nix/nix.conf"]);
|
||||
yield exec.exec("sudo", ["sh", "-c", "echo http2 = false >> /etc/nix/nix.conf"]);
|
||||
// Set jobs to number of cores
|
||||
yield exec.exec("sudo", ["sh", "-c", "echo max-jobs = auto >> /etc/nix/nix.conf"]);
|
||||
// TODO: retry due to all the things that go wrong
|
||||
const nixInstall = yield tc.downloadTool('https://nixos.org/nix/install');
|
||||
yield exec.exec("sh", [nixInstall]);
|
||||
|
@ -13,7 +13,10 @@ async function run() {
|
||||
|
||||
// Workaround a segfault: https://github.com/NixOS/nix/issues/2733
|
||||
await exec.exec("sudo", ["mkdir", "-p", "/etc/nix"]);
|
||||
await exec.exec("sudo", ["echo", "http2 = false", ">>", "/etc/nix/nix.conf"]);
|
||||
await exec.exec("sudo", ["sh", "-c", "echo http2 = false >> /etc/nix/nix.conf"]);
|
||||
|
||||
// Set jobs to number of cores
|
||||
await exec.exec("sudo", ["sh", "-c", "echo max-jobs = auto >> /etc/nix/nix.conf"]);
|
||||
|
||||
// TODO: retry due to all the things that go wrong
|
||||
const nixInstall = await tc.downloadTool('https://nixos.org/nix/install');
|
||||
|
Reference in New Issue
Block a user