@@ -17,15 +17,50 @@ jobs:
17
17
- uses : cachix/install-nix-action@v18
18
18
- name : Build tarballs
19
19
run : |
20
- nix- build -A hydraJobs.tarball
20
+ nix build -L .# hydraJobs.tarball
21
21
install -D ./result/tarballs/*.tar.bz2 ./dist/patchelf-$(cat version).tar.bz2
22
22
install -D ./result/tarballs/*.tar.gz ./dist/patchelf-$(cat version).tar.gz
23
23
- uses : actions/upload-artifact@v3
24
24
with :
25
25
name : patchelf
26
26
path : dist/*
27
27
28
- build_binaries :
28
+ build_windows :
29
+ name : Build windows executable
30
+ runs-on : ubuntu-latest
31
+ steps :
32
+ - name : Checkout
33
+ uses : actions/checkout@v3
34
+ - uses : cachix/install-nix-action@v18
35
+ - name : Build windows executable
36
+ run : |
37
+ nix build -L .#patchelf-win32 .#patchelf-win64
38
+ install -D ./result/bin/patchelf.exe ./dist/patchelf-win32.exe
39
+ install -D ./result-1/bin/patchelf.exe ./dist/patchelf-win64.exe
40
+ - uses : actions/upload-artifact@v3
41
+ with :
42
+ name : patchelf
43
+ path : dist/*
44
+
45
+ test_windows :
46
+ name : Test windows binaries
47
+ needs : [build_windows]
48
+ runs-on : windows-latest
49
+ steps :
50
+ - uses : actions/checkout@v2
51
+ - uses : actions/download-artifact@v3
52
+ with :
53
+ name : patchelf
54
+ path : dist
55
+ - name : Show binaries
56
+ run : dir .\\dist
57
+ - name : Test windows 64-bit binary
58
+ run : .\\dist\\patchelf-win32.exe --version
59
+
60
+ - name : Test windows 32-bit binary
61
+ run : .\\dist\\patchelf-win64.exe --version
62
+
63
+ build_musl :
29
64
name : Build static musl binaries
30
65
needs : [build_tarballs]
31
66
runs-on : ubuntu-latest
82
117
83
118
publish :
84
119
name : Publish tarballs & binaries
85
- needs : [build_tarballs, build_binaries ]
120
+ needs : [build_tarballs, build_windows, build_musl ]
86
121
if : github.event_name == 'push' && github.repository == 'NixOS/patchelf' && startsWith(github.ref, 'refs/tags/')
87
122
runs-on : ubuntu-latest
88
123
steps :
0 commit comments