-
Notifications
You must be signed in to change notification settings - Fork 9
/
.gitlab-ci.yml
1574 lines (1330 loc) · 57.2 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
variables:
CARGO_HOME: $CI_PROJECT_DIR/.cargo-proj
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
cache:
key: there-is-no-cache
policy: pull
# At some point, we should do: cargo test --all
# lapack notes for the future:
# Ubuntu 16.04 - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl build-essential libgfortran-5-dev liblapack-dev libblas-dev
# Debian (jessie?) - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl build-essential libgfortran-6-dev liblapack-dev libblas-dev
test_crates:
image: ubuntu:focal
script:
- _packaging/setup-ubuntu-20.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- DEBIAN_FRONTEND=noninteractive apt-get install -y libgstreamer-plugins-base1.0-dev libapriltag-dev ffmpeg
- rustup target add thumbv7em-none-eabihf
# Test ffmpeg-writer
- cd media-utils/ffmpeg-writer
- cargo test --release
- cd ../..
# Test fmf-cli
- cd fmf/fmf-cli
- cargo test --release
- cd ../..
# Test apriltag
- cd apriltag
- cargo test --release
- cd ..
# Test apriltag-track-movie
- cd apriltag/apriltag-track-movie
- cargo test --release
- cd ../..
# Test gstreamer apriltag detector
- cd gst-plugin-apriltag
- cargo test --release
- cd ..
- cd gst-plugin-nvargustime
- cargo test --release
- cd ..
# Test braid-april-cal, which requires opencv
- cd braid-april-cal
# run test in release mode, otherwise slow
- PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig OPENCV_STATIC=1 cargo test --release --features solve-pnp
- cd ..
# Test braid-april-cal, which requires opencv
- cd braid-april-cal/flytrax-apriltags-calibration
- PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig OPENCV_STATIC=1 cargo test --release
- cd ../..
# flytrax-csv-to-braidz, which requires opencv
- cd flytrax-csv-to-braidz
- PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig OPENCV_STATIC=1 cargo test --release --features "with_apriltags"
- cd ..
# Test freemovr-calibration, which requires opencv
- cd freemovr-calibration
# run test in release mode, otherwise slow
- PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig OPENCV_STATIC=1 cargo test --release --features "opencv"
- cd ..
# Test strand-cam-offline-checkerboards
- cd strand-cam/strand-cam-offline-checkerboards
- PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig OPENCV_STATIC=1 cargo test --release
- cd ../..
# Test freemovr-calibration-cli
- cd freemovr-calibration/freemovr-calibration-cli
- PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig OPENCV_STATIC=1 cargo build --features "opencv"
- cd ../..
# Test Pylon stuff
- _packaging/setup-ubuntu-20.04-pylon.sh
- cd ci2-simple-demo
- LD_LIBRARY_PATH="/opt/pylon/lib" cargo test --features backend_pyloncxx
- cd ..
- cd ci2-simple-async-demo
- LD_LIBRARY_PATH="/opt/pylon/lib" cargo test --features backend_pyloncxx
- cd ..
- cd ci2-cli
- cargo test --features backend_pyloncxx
- cd ..
- DEBIAN_FRONTEND=noninteractive apt-get install -y cmake pkg-config libfontconfig-dev
- cd fly-eye
- cargo build --release --features camsrc_pyloncxx
- cd ..
- cd imagesrc-gst
- cargo check --all-targets
- cd ..
- cd gst-plugin-nvargustime
- cargo check --all-targets
- cd ..
- cd gst-plugin-apriltag
- cargo check --all-targets
- cd ..
- cd led-box-comms
- cargo test
- cd ..
test_flydra2:
variables:
GIT_SUBMODULE_STRATEGY: recursive
image: ubuntu:focal
script:
- _packaging/setup-ubuntu-20.04.sh
- export PATH="$PATH:$CARGO_HOME/bin"
- ls -l _submodules
# Install python and pip, but let pip install everything from there.
- apt-get -y update && DEBIAN_FRONTEND=noninteractive apt install -y python3-pip python-is-python3 libcairo2-dev
- pip3 install --upgrade pip
# # Install flydra from pip
# - pip install flydra_core
# - pip install flydra_analysis
# Install flydra from git submodule
- cd _submodules/flydra/flydra_core/
- python -m pip install -e .
- cd ../../..
- cd _submodules/flydra/flydra_analysis/
- python -m pip install -e .
- cd ../../..
# Install required python packages
- python -m pip install imageio
- export RUSTFLAGS="-D warnings"
- cd braid-offline
- cargo build --release
- cd ..
- cd flydra2
- cargo build --release
- PATH="../target/release:$PATH" cargo test --release
- cd ..
- cd strand-cam-pseudo-cal
- cargo test --release
- cd ..
- cd braid-offline
# test 3D retracking
- PATH="../target/release:$PATH" cargo test --release
# test 2D retracking
- PATH="../target/release:$PATH" cargo run --no-default-features --features "flydra2/bundle_files" --bin braid-offline-retrack --release -- -d test_data/20180330_113743.short -o /tmp/k2d.braidz
# run retracking script
- MPLBACKEND=AGG ./test_data/retrack-demo.sh
# TODO: test 3D retracking using `rust-cam-testing-data`
# cargo run --bin braid-offline-retrack -- -d ..\..\rust-cam-testing-data\20200622_111457.braid -o tmp
test_crates_rust_1_80:
image: rust:1.80
script:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- rustup target add thumbv7em-none-eabihf
- export RUSTFLAGS="-D warnings"
# Test zip-or-dir
- cd zip-or-dir
- cargo test --features with-gz
- cd ..
# Test fastfreeimage
- cd fastfreeimage
- cargo test
- cd ..
# Test mvg
- cd mvg
- cargo test --features rerun-io
- cd ..
# Test braid-april-cal-webapp
- cd braid-april-cal/braid-april-cal-webapp
- cargo test
- cd ../..
# Test datetime-conversion
- cd datetime-conversion
- cargo test
- cd ..
# Test simple-obj-parse
- cd simple-obj-parse
- cargo test
- cd ..
# basic-frame
- cd basic-frame
- cargo test
- cargo test --features convert-image
- cd ..
# strand-cam
- cd strand-cam
- cargo test --no-default-features --features serve_files
- cd ..
# Test imops
- cd imops
- cargo test
- cargo test --no-default-features --features std
- cargo build --no-default-features --target thumbv7em-none-eabihf
- cargo bench --no-run
- cd ..
# Test braidz-parser
- cd braidz-parser
- cargo test
- cd ..
# Test tracking
- cd tracking
- cargo test
- cd ..
# Test ufmf
- cd ufmf
- cargo test
- cd ..
# Test flydra-types
- cd flydra-types
- cargo test
- cd ..
# Test flydra-mvg
- cd flydra-mvg
- cargo test
- cd ..
# Test fmf
- cd fmf
- cargo test
- cd ..
# Test media-utils/tiff-decoder
- cd media-utils/tiff-decoder
- cargo test
- cd ../..
# Test media-utils/dump-frame
- cd media-utils/dump-frame
- cargo test
- cd ../..
# Test media-utils/strand-convert
- cd media-utils/strand-convert
- cargo test -- --test-threads 1
- cd ../..
# Test media-utils/show-timestamps
- cd media-utils/show-timestamps
- cargo test
- cd ../..
# Test media-utils/mkv-strand-reader
- cd media-utils/mkv-strand-reader
- cargo test
- cd ../..
# Test flydra-feature-detector
- cd flydra-feature-detector
- cargo test --release --features do_not_use_ipp
- cd ..
# Test media-utils/frame-source
- cd media-utils/frame-source
- cargo test
- cd ../..
test_crates_rust_nightly:
image: rust:1.80
script:
- export RUSTFLAGS="-D warnings"
# Use known good nightly
- rustup update --no-self-update nightly-2024-07-25
# Test imops with nightly features
- cd imops
- cargo +nightly-2024-07-25 test --no-default-features --features std,simd
- cd ..
# Test fastfreeimage
- cd fastfreeimage
- cargo +nightly-2024-07-25 test --features portsimd
- cd ..
test_flydra_feature_detector:
image: ubuntu:focal
script:
- _packaging/setup-ubuntu-20.04.sh
- _packaging/setup-ubuntu-20.04-ipp.sh
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- cargo --version
- source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux && cd flydra-feature-detector && RUST_BACKTRACE=1 cargo test --features ipp-sys/2019,use_ipp
test_fastimage:
image: ubuntu:focal
script:
- _packaging/setup-ubuntu-20.04.sh
- _packaging/setup-ubuntu-20.04-ipp.sh
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux && cd fastimage && cargo test --verbose --features "ipp-sys/2019" -- --nocapture --test-threads 1
led-box-ubuntu2004-debs:
image: ubuntu:focal
script:
- _packaging/setup-ubuntu-20.04.sh
- mkdir -p $CI_PROJECT_DIR/focal-led-box-debs
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y dpkg-dev debhelper
- cd led-box
- cp $CI_PROJECT_DIR/build/led-box ./
- cp $CI_PROJECT_DIR/led-box-firmware-${CI_COMMIT_SHA}.bin ./led-box-firmware.bin
- dpkg-buildpackage -rfakeroot -b -uc -us
- cd ..
- cp -a led-box*.changes $CI_PROJECT_DIR/focal-led-box-debs/
- cp -a led-box*.deb $CI_PROJECT_DIR/focal-led-box-debs/
needs:
- led-box-linux
- led-box-firmware
artifacts:
paths:
- focal-led-box-debs/
name: "rust-cam-focal-led-box-debs-${CI_COMMIT_SHA}"
led-box-standalone-ubuntu2004-deb:
image: ubuntu:focal
script:
- _packaging/setup-ubuntu-20.04.sh
- export PATH="$PATH:$CARGO_HOME/bin"
- mkdir -p $CI_PROJECT_DIR/led-box-standalone-debs
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y dpkg-dev debhelper libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev cmake pkg-config libfontconfig-dev
- cd led-box-standalone
- cargo build --release
- cp $CI_PROJECT_DIR/target/release/led-box-standalone ./
- dpkg-buildpackage -rfakeroot -b -uc -us
- cd ..
- cp -a led-box-standalone*.changes $CI_PROJECT_DIR/led-box-standalone-debs/
- cp -a led-box-standalone*.deb $CI_PROJECT_DIR/led-box-standalone-debs/
artifacts:
paths:
- led-box-standalone-debs/
name: "led-box-standalone-debs-${CI_COMMIT_SHA}"
build-freemovr-calibration:
image: rust:1.80
script:
- export RUSTFLAGS="-D warnings"
- cd freemovr-calibration/freemovr-calibration-cli
- cargo build --release
- mkdir -p $CI_PROJECT_DIR/freemovr-cal-linux
- ldd ../../target/release/freemovr-calibration
- ls -lh ../../target/release/freemovr-calibration
- cp -a ../../target/release/freemovr-calibration $CI_PROJECT_DIR/freemovr-cal-linux
artifacts:
paths:
- freemovr-cal-linux
name: "freemovr-cal-linux-${CI_COMMIT_SHA}"
build-freemovr-calibration-webapp:
image: rust:1.80
script:
- export RUSTFLAGS="-D warnings"
- export PATH="$PATH:$CARGO_HOME/bin"
- echo $PATH
- rustup target add wasm32-unknown-unknown
- cargo install wasm-bindgen-cli --version 0.2.97 --force --locked
- cargo install grass
- wasm-bindgen --version
- cd freemovr-calibration/freemovr-calibration-webapp
- ./build.sh
- mkdir -p $CI_PROJECT_DIR/freemovr-cal-webapp
- cp -a pkg/* $CI_PROJECT_DIR/freemovr-cal-webapp
artifacts:
paths:
- freemovr-cal-webapp
name: "freemovr-cal-webapp-${CI_COMMIT_SHA}"
deploy-freemovr-calibration-webapp:
tags:
- rsync
script:
- mkdir ~/.ssh
- chmod 0700 ~/.ssh
- echo "|1|eh/SuKKTa6MBQdNoN+gs5XJrzLY=|eir5FQuVRJtnzVp3hyOIlPXPEGs= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDI610RLfmUtxDbgDkNdTmnIEAjDsiiOrODVQNkq4TXjvx6+TUSgL2vo1Sxq4c/I9uD3HeXK2HnBH0WJZN5FB9g=" >> ~/.ssh/known_hosts
- echo "$SSH_STRAWLAB_ORG_VR_CAL" > ~/.ssh/id_rsa
- cat /root/.ssh/id_rsa
- ls -l /root/.ssh/id_rsa
- md5sum /root/.ssh/id_rsa
- chmod go-rx ~/.ssh/id_rsa
- ls -ltrh freemovr-cal-webapp
- rsync -avzP --delete freemovr-cal-webapp/ [email protected]:/var/www/strawlab.org/html/vr-cal
environment:
name: production
url: https://strawlab.org/vr-cal/
needs:
- build-freemovr-calibration-webapp
when: manual
build-api-docs:
image: ubuntu:focal
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-20.04.sh
- _packaging/setup-ubuntu-20.04-ipp.sh
- _packaging/setup-opencv-4.9.0-static.sh
- export PATH="$PATH:$CARGO_HOME/bin"
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
# build docs for braid-run
- cd $CI_PROJECT_DIR/braid/braid-run
- NUM_JOBS=2 cargo doc --no-default-features --features serve_files
- cd $CI_PROJECT_DIR
- _packaging/setup-ubuntu-20.04-pylon.sh
- cd $CI_PROJECT_DIR/strand-cam
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig
IPP_STATIC=1
NUM_JOBS=2
cargo doc --features serve_files,ipp-sys/2019,fiducial,checkercal
- cd $CI_PROJECT_DIR
# remove potential old output directory
- rm -rf build
- mkdir build
# rename directory
- mv target/doc build/latest
artifacts:
paths:
- build/
name: "api-docs-${CI_COMMIT_SHA}"
stage-api-docs:
image: ubuntu:focal
script:
- apt-get update && apt-get install -y rsync openssh-client
- mkdir ~/.ssh
- chmod 0700 ~/.ssh
- echo "|1|zo8kIvGXE6Nf3WNYrk/IwXyNt18=|cMmSpBho6sRzu8Z4+LNSFAFY4L8= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGs/hBRnah/Zi6behPr3X+wamzb6wzwj/rxQAwWX6uXwu/enV2zfyM5TzeAL3PbWXbLsb5bLumCHIDUg15UMLK8=" >> ~/.ssh/known_hosts
- echo "|1|c1I4D0LzU1HjupN0Wc9Md1QIYVE=|ITvXx3AglaDGm8hhfahKF52hmGU= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGs/hBRnah/Zi6behPr3X+wamzb6wzwj/rxQAwWX6uXwu/enV2zfyM5TzeAL3PbWXbLsb5bLumCHIDUg15UMLK8=" >> ~/.ssh/known_hosts
- echo "$SSH_STRAWLAB_ORG_STAGING" > ~/.ssh/id_rsa
- chmod go-rx ~/.ssh/id_rsa
- rsync -az --delete build/latest/ [email protected]:strawlab-org-staging.strawlab-internal.de/strand-braid-api-docs/latest
environment:
name: strand-braid-api-docs-staging
url: http://strawlab-org-staging.strawlab-internal.de/strand-braid-api-docs/latest
needs:
- build-api-docs
publish-api-docs:
# To deploy API docs in the Gitlab CI userinterface for the pipeline, click on
# this job (not the "play" button but the name of the unstarted job). This
# will bring up a screen in which variables can be manually entered. Create a
# variable with key STRAWLAB_ORG_SSH_PRIVATE_KEY in which the value is the SSH
# private key for the user below. In case accidentally deployment was
# triggered without entering the variable, delete the job log and the gitlab
# screen will be available again.
image: ubuntu:focal
script:
- apt-get update && apt-get install -y rsync openssh-client
- mkdir ~/.ssh
- chmod 0700 ~/.ssh
- echo "|1|zYmppQbwcvSf9VwRXNIR7kmVjC8=|OQqqxboFIh/377N2Zowb5mf3BlM= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM7pO/cxdS/WSaaWJ1ZPdnS8F4WC+8LkJVvCZnaKhCZ7EUD+z+Go0Uv3Tc5KomiBDwU5/LyH1dxJDSh7HCaHAj8=" >> ~/.ssh/known_hosts
- echo "|1|srFMGIUJYliwLud77x10lZeaP84=|xt2VN57X6KsacGPwa2BeUtnJjSQ= ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM7pO/cxdS/WSaaWJ1ZPdnS8F4WC+8LkJVvCZnaKhCZ7EUD+z+Go0Uv3Tc5KomiBDwU5/LyH1dxJDSh7HCaHAj8=" >> ~/.ssh/known_hosts
# Because the gitlab UI does not allow multiline inputs, the key was encoded
# with `cat privatekey_filename | base64 | tr "\n" " "`. Take the gitlab CI variable
# with key STRAWLAB_ORG_SSH_PRIVATE_KEY, save to private SSH key.
- echo "$STRAWLAB_ORG_SSH_PRIVATE_KEY" | tr " " "\n" | base64 --decode > ~/.ssh/id_ed25519
- chmod go-rx ~/.ssh/id_ed25519
- rsync -az --delete build/latest/ [email protected]:strawlab.org/strand-braid-api-docs/latest
environment:
name: strand-braid-api-docs
url: https://strawlab.org/strand-braid-api-docs/latest
needs:
- build-api-docs
when: manual
strand-cam-pylon-ubuntu2004:
image: ubuntu:focal
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-20.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-20.04-pylon.sh
- _packaging/setup-ubuntu-20.04-ipp.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- rustc --version
- cd strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-pylon
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1 -C link-args=-Wl,-rpath,/opt/pylon/lib"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp strand-cam/imtrack-absdiff" --release
# - ../target/release/strand-cam --version # disabled because requires pylon libs in path
- mkdir -p $CI_PROJECT_DIR/build
- cp $CI_PROJECT_DIR/target/release/strand-cam-pylon $CI_PROJECT_DIR/build/
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-pylon focal > $CI_PROJECT_DIR/build/strand-cam-pylon.changelog
- cp ../target/release/write-debian-changelog $CI_PROJECT_DIR/build/
artifacts:
paths:
- build/
name: "strand-cam-pylon-ubuntu2004-${CI_COMMIT_SHA}"
strand-cam-pylon-ubuntu2404:
when: manual
image: ubuntu:noble
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-24.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-24.04-pylon.sh
- _packaging/setup-ubuntu-24.04-ipp.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- rustc --version
- cd strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-pylon
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1 -C link-args=-Wl,-rpath,/opt/pylon/lib"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp strand-cam/imtrack-absdiff" --release
# - ../target/release/strand-cam --version # disabled because requires pylon libs in path
- mkdir -p $CI_PROJECT_DIR/build
- cp $CI_PROJECT_DIR/target/release/strand-cam-pylon $CI_PROJECT_DIR/build/
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-pylon noble > $CI_PROJECT_DIR/build/strand-cam-pylon.changelog
- cp ../target/release/write-debian-changelog $CI_PROJECT_DIR/build/
artifacts:
paths:
- build/
name: "strand-cam-pylon-ubuntu2404-${CI_COMMIT_SHA}"
strand-cam-pylon-ubuntu2204:
when: manual
image: ubuntu:jammy
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-22.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-22.04-pylon.sh
- _packaging/setup-ubuntu-22.04-ipp.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- rustc --version
- cd strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-pylon
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1 -C link-args=-Wl,-rpath,/opt/pylon/lib"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp strand-cam/imtrack-absdiff" --release
# - ../target/release/strand-cam --version # disabled because requires pylon libs in path
- mkdir -p $CI_PROJECT_DIR/build
- cp $CI_PROJECT_DIR/target/release/strand-cam-pylon $CI_PROJECT_DIR/build/
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-pylon jammy > $CI_PROJECT_DIR/build/strand-cam-pylon.changelog
- cp ../target/release/write-debian-changelog $CI_PROJECT_DIR/build/
artifacts:
paths:
- build/
name: "strand-cam-pylon-ubuntu2204-${CI_COMMIT_SHA}"
strand-cam-vimba-ubuntu2404:
when: manual
image: ubuntu:noble
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-24.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-24.04-ipp.sh
- _packaging/setup-ubuntu-24.04-vimba.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- rustc --version
- cd $CI_PROJECT_DIR/strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-vimba
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp strand-cam/imtrack-absdiff" --release
- ldd $CI_PROJECT_DIR/target/release/strand-cam-vimba
- mkdir -p $CI_PROJECT_DIR/build
- cp $CI_PROJECT_DIR/target/release/strand-cam-vimba $CI_PROJECT_DIR/build
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-vimba noble > $CI_PROJECT_DIR/build/strand-cam-vimba.changelog
artifacts:
paths:
- build/
name: "strand-cam-vimba-ubuntu2404-${CI_COMMIT_SHA}"
strand-cam-vimba-ubuntu2004:
image: ubuntu:focal
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-20.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-20.04-ipp.sh
- _packaging/setup-ubuntu-20.04-vimba.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- rustc --version
- cd $CI_PROJECT_DIR/strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-vimba
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp strand-cam/imtrack-absdiff" --release
- ldd $CI_PROJECT_DIR/target/release/strand-cam-vimba
- mkdir -p $CI_PROJECT_DIR/build
- cp $CI_PROJECT_DIR/target/release/strand-cam-vimba $CI_PROJECT_DIR/build
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-vimba focal > $CI_PROJECT_DIR/build/strand-cam-vimba.changelog
artifacts:
paths:
- build/
name: "strand-cam-vimba-ubuntu2004-${CI_COMMIT_SHA}"
strand-cam-vimba-ubuntu2204:
when: manual
image: ubuntu:jammy
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-22.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-22.04-ipp.sh
- _packaging/setup-ubuntu-22.04-vimba.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- rustc --version
- cd $CI_PROJECT_DIR/strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-vimba
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp strand-cam/imtrack-absdiff" --release
- ldd $CI_PROJECT_DIR/target/release/strand-cam-vimba
- mkdir -p $CI_PROJECT_DIR/build
- cp $CI_PROJECT_DIR/target/release/strand-cam-vimba $CI_PROJECT_DIR/build
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-vimba jammy > $CI_PROJECT_DIR/build/strand-cam-vimba.changelog
artifacts:
paths:
- build/
name: "strand-cam-vimba-ubuntu2204-${CI_COMMIT_SHA}"
py-strandcam-pylon-linux:
image: ubuntu:focal
script:
- _packaging/setup-ubuntu-20.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-20.04-pylon.sh
- _packaging/setup-ubuntu-20.04-ipp.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- rustc --version
- curl --show-error --fail --silent https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > /tmp/Miniconda3-latest-Linux-x86_64.sh
- chmod a+x /tmp/Miniconda3-latest-Linux-x86_64.sh
- bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
- source $HOME/miniconda3/etc/profile.d/conda.sh
- cd py-strandcam
- conda env create -f environment.yml
- conda activate strandcam
- cd $CI_PROJECT_DIR/strand-cam/yew_frontend && time ./build.sh
- cd $CI_PROJECT_DIR/py-strandcam
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1 -C link-args=-Wl,-rpath,/opt/pylon/lib"
NUM_JOBS=2
IPP_SYS=2019
python setup.py install
flytrax-csv-to-braidz-binary:
# Use manylinux project to build binary compatible with old glibc
image: quay.io/pypa/manylinux_2_28_x86_64
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-opencv-4.9.0-static.sh
- curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- cd $CI_PROJECT_DIR/flytrax-csv-to-braidz
- OPENCV_STATIC=1 PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig cargo build --release --features "with_apriltags"
- mkdir -p $CI_PROJECT_DIR/build
- ldd $CI_PROJECT_DIR/target/release/flytrax-csv-to-braidz
- cp $CI_PROJECT_DIR/target/release/flytrax-csv-to-braidz $CI_PROJECT_DIR/build/
artifacts:
paths:
- build/
strand-cam-flydratrax-pylon-ubuntu2404:
when: manual
image: ubuntu:noble
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-24.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-24.04-pylon.sh
- _packaging/setup-ubuntu-24.04-ipp.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- cd strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-pylon-gui
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig:/opt/libvpx/libvpx-1.8.0/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1 -C link-args=-Wl,-rpath,/opt/pylon/lib"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files strand-cam/flydratrax strand-cam/imtrack-dark-circle ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp" --release
# - ../target/release/strand-cam --version # disabled because requires pylon libs in path
- mkdir -p $CI_PROJECT_DIR/build
# Rename the target to `strand-cam-flydratrax-pylon`.
- cp $CI_PROJECT_DIR/target/release/strand-cam-pylon-gui $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon
- cp $CI_PROJECT_DIR/_packaging/strand-braid/strand-cam-flydratrax-pylon.desktop $CI_PROJECT_DIR/build/
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-flydratrax-pylon noble > $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon.changelog
- cat $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon.changelog
artifacts:
paths:
- build/
name: "strand-cam-flydratrax-pylon-ubuntu2404-${CI_COMMIT_SHA}"
strand-cam-flydratrax-pylon-ubuntu2004:
image: ubuntu:focal
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-20.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-20.04-pylon.sh
- _packaging/setup-ubuntu-20.04-ipp.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- cd strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-pylon-gui
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig:/opt/libvpx/libvpx-1.8.0/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1 -C link-args=-Wl,-rpath,/opt/pylon/lib"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files strand-cam/flydratrax strand-cam/imtrack-dark-circle ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp" --release
# - ../target/release/strand-cam --version # disabled because requires pylon libs in path
- mkdir -p $CI_PROJECT_DIR/build
# Rename the target to `strand-cam-flydratrax-pylon`.
- cp $CI_PROJECT_DIR/target/release/strand-cam-pylon-gui $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon
- cp $CI_PROJECT_DIR/_packaging/strand-braid/strand-cam-flydratrax-pylon.desktop $CI_PROJECT_DIR/build/
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-flydratrax-pylon focal > $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon.changelog
- cat $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon.changelog
artifacts:
paths:
- build/
name: "strand-cam-flydratrax-pylon-linux-${CI_COMMIT_SHA}"
strand-cam-flydratrax-pylon-ubuntu2204:
when: manual
image: ubuntu:jammy
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- _packaging/setup-ubuntu-22.04.sh
- _packaging/setup-opencv-4.9.0-static.sh
- _packaging/setup-ubuntu-22.04-pylon.sh
- _packaging/setup-ubuntu-22.04-ipp.sh
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y llvm-dev libclang-dev clang
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
- cd strand-cam/yew_frontend && time ./build.sh && cd $CI_PROJECT_DIR/strand-cam/strand-cam-pylon-gui
- >
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux &&
OPENCV_STATIC=1
PKG_CONFIG_PATH=/opt/opencv-4.9.0-static/lib/pkgconfig:/opt/libvpx/libvpx-1.8.0/lib/pkgconfig
IPP_STATIC=1
RUSTFLAGS="$RUSTFLAGS -C target-cpu=sandybridge -C codegen-units=1 -C link-args=-Wl,-rpath,/opt/pylon/lib"
NUM_JOBS=2
cargo build --no-default-features --features "strand-cam/bundle_files strand-cam/flydratrax strand-cam/imtrack-dark-circle ipp-sys/2019 strand-cam/checkercal strand-cam/fiducial imops/simd strand-cam/flydra_feat_detect strand-cam/use_ipp" --release
# - ../target/release/strand-cam --version # disabled because requires pylon libs in path
- mkdir -p $CI_PROJECT_DIR/build
# Rename the target to `strand-cam-flydratrax-pylon`.
- cp $CI_PROJECT_DIR/target/release/strand-cam-pylon-gui $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon
- cp $CI_PROJECT_DIR/_packaging/strand-braid/strand-cam-flydratrax-pylon.desktop $CI_PROJECT_DIR/build/
- cd $CI_PROJECT_DIR/write-debian-changelog
- cargo build --release
- $CI_PROJECT_DIR/target/release/write-debian-changelog strand-cam-flydratrax-pylon jammy > $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon.changelog
- cat $CI_PROJECT_DIR/build/strand-cam-flydratrax-pylon.changelog
artifacts:
paths:
- build/
name: "strand-cam-flydratrax-pylon-linux-${CI_COMMIT_SHA}"
braid-offline-ubuntu2404:
when: manual
image: ubuntu:noble
script:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl build-essential git
- curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
# Build without glibc dependency so it runs on cluster with ancient glibc.
- rustup target install x86_64-unknown-linux-musl
- cd $CI_PROJECT_DIR/braid-offline
- cargo build --release --target x86_64-unknown-linux-musl
- mkdir -p $CI_PROJECT_DIR/build
- cp ../target/x86_64-unknown-linux-musl/release/braid-offline-retrack $CI_PROJECT_DIR/build/
- cp ../target/x86_64-unknown-linux-musl/release/compute-flydra1-compat $CI_PROJECT_DIR/build/
artifacts:
paths:
- build/
name: "braid-offline-ubuntu2404-${CI_COMMIT_SHA}"
braid-offline-ubuntu2004:
image: ubuntu:focal
script:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl build-essential git
- curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
# Build without glibc dependency so it runs on cluster with ancient glibc.
- rustup target install x86_64-unknown-linux-musl
- cd $CI_PROJECT_DIR/braid-offline
- cargo build --release --target x86_64-unknown-linux-musl
- mkdir -p $CI_PROJECT_DIR/build
- cp ../target/x86_64-unknown-linux-musl/release/braid-offline-retrack $CI_PROJECT_DIR/build/
- cp ../target/x86_64-unknown-linux-musl/release/compute-flydra1-compat $CI_PROJECT_DIR/build/
artifacts:
paths:
- build/
name: "braid-offline-ubuntu2004-${CI_COMMIT_SHA}"
braid-offline-ubuntu2204:
when: manual
image: ubuntu:jammy
script:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl build-essential git
- curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
- export PATH="$PATH:$CARGO_HOME/bin"
- export RUSTFLAGS="-D warnings"
# Build without glibc dependency so it runs on cluster with ancient glibc.
- rustup target install x86_64-unknown-linux-musl
- cd $CI_PROJECT_DIR/braid-offline
- cargo build --release --target x86_64-unknown-linux-musl
- mkdir -p $CI_PROJECT_DIR/build
- cp ../target/x86_64-unknown-linux-musl/release/braid-offline-retrack $CI_PROJECT_DIR/build/
- cp ../target/x86_64-unknown-linux-musl/release/compute-flydra1-compat $CI_PROJECT_DIR/build/
artifacts:
paths:
- build/
name: "braid-offline-ubuntu2204-${CI_COMMIT_SHA}"
braid-process-video-ubuntu2404:
when: manual
image: ubuntu:noble
script:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y dpkg-dev debhelper git libavformat-dev libavfilter-dev libavdevice-dev pkg-config libclang-dev libvpx-dev curl