Skip to content

Commit 3e7ee8b

Browse files
committed
add CI building them all
1 parent 5fdf695 commit 3e7ee8b

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- uses: DeterminateSystems/nix-installer-action@main
21+
- uses: DeterminateSystems/magic-nix-cache-action@main
22+
- name: Build
23+
run: nix build -L --no-link --keep-going .#all

flake.nix

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
{
22
inputs.nixpkgs.url = https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz;
3-
outputs = { self, nixpkgs }: {
4-
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; {
3+
outputs = { self, nixpkgs }: rec {
4+
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec {
55
native32 = with pkgsi686Linux; {
66
gcc = callPackage ./rebuild_PC { ctrModSDK = self; };
77
clang = callPackage ./rebuild_PC { ctrModSDK = self; stdenv = clangStdenv; };
88
};
9-
mingw32 = with mingw32; {
9+
mingw32 = with pkgsCross.mingw32; {
1010
gcc = callPackage ./rebuild_PC { ctrModSDK = self; };
1111
clang = callPackage ./rebuild_PC { ctrModSDK = self; stdenv = clangStdenv; };
1212
};
13+
all = stdenvNoCC.mkDerivation {
14+
name = "ctr-join";
15+
dontUnpack = true;
16+
dontBuild = true;
17+
installPhase = ''
18+
mkdir $out
19+
ln -s ${native32.gcc} $out/native32-gcc
20+
ln -s ${native32.clang} $out/native32-clang
21+
ln -s ${mingw32.gcc} $out/mingw32-gcc
22+
ln -s ${mingw32.clang} $out/mingw32-clang
23+
'';
24+
};
1325
};
26+
# default
27+
package.x86_64-linux = packages.x86_64-linux.native32.gcc;
1428
};
1529
}

0 commit comments

Comments
 (0)