@@ -19,27 +19,20 @@ jobs:
19
19
fail-fast : false
20
20
runs-on : ${{ matrix.os }}
21
21
steps :
22
- - uses : actions/checkout@v2
23
- - uses : actions-rs/ toolchain@v1
22
+ - uses : actions/checkout@v4
23
+ - uses : dtolnay/rust- toolchain@stable
24
24
with :
25
- profile : minimal
26
25
toolchain : stable
27
- override : true
28
26
components : rustfmt
29
- - uses : actions-rs/cargo@v1
30
- with :
31
- command : fmt
32
- args : --all -- --check
27
+ - run : cargo fmt --all -- --check
33
28
34
29
rust_clippy_check_ubuntu :
35
30
runs-on : ubuntu-latest
36
31
steps :
37
- - uses : actions/checkout@v2
38
- - uses : actions-rs/ toolchain@v1
32
+ - uses : actions/checkout@v4
33
+ - uses : dtolnay/rust- toolchain@stable
39
34
with :
40
- profile : minimal
41
35
toolchain : stable
42
- override : true
43
36
components : clippy
44
37
45
38
# https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
@@ -95,12 +88,11 @@ jobs:
95
88
rust_clippy_check_windows :
96
89
runs-on : windows-latest
97
90
steps :
98
- - uses : actions/checkout@v2
99
- - uses : actions-rs/ toolchain@v1
91
+ - uses : actions/checkout@v4
92
+ - uses : dtolnay/rust- toolchain@stable
100
93
with :
101
- profile : minimal
102
94
toolchain : stable
103
- override : true
95
+ components : clippy
104
96
105
97
# Using this since it's used by clang-sys's CI
106
98
- name : Install LLVM and Clang
@@ -137,14 +129,13 @@ jobs:
137
129
build_static_and_test_ubuntu_with_system_ffmpeg :
138
130
runs-on : ubuntu-latest
139
131
steps :
140
- - uses : actions/checkout@v2
141
- - uses : actions-rs/ toolchain@v1
132
+ - uses : actions/checkout@v4
133
+ - uses : dtolnay/rust- toolchain@stable
142
134
with :
143
- profile : minimal
144
135
toolchain : stable
145
- override : true
146
136
components : clippy
147
137
138
+
148
139
# https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
149
140
- name : Install FFmpegBuildTools
150
141
run : |
@@ -256,12 +247,10 @@ jobs:
256
247
build_static_and_test_ubuntu :
257
248
runs-on : ubuntu-latest
258
249
steps :
259
- - uses : actions/checkout@v2
260
- - uses : actions-rs/ toolchain@v1
250
+ - uses : actions/checkout@v4
251
+ - uses : dtolnay/rust- toolchain@stable
261
252
with :
262
- profile : minimal
263
253
toolchain : stable
264
- override : true
265
254
266
255
# https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
267
256
- name : Install FFmpegBuildTools
@@ -353,13 +342,11 @@ jobs:
353
342
dynamic : true
354
343
fail-fast : false
355
344
steps :
356
- - uses : actions/checkout@v2
357
- - uses : actions-rs/ toolchain@v1
345
+ - uses : actions/checkout@v4
346
+ - uses : dtolnay/rust- toolchain@stable
358
347
with :
359
- profile : minimal
360
348
toolchain : stable
361
- override : true
362
- target : ${{ matrix.config.target }}
349
+ targets : ${{ matrix.config.target }}
363
350
364
351
# Using this since it's used by clang-sys's CI
365
352
- name : Install LLVM and Clang
@@ -472,12 +459,10 @@ jobs:
472
459
cp -r ./build ~/ffmpeg_prebuilt
473
460
cd ../..
474
461
475
- - uses : actions/checkout@v2
476
- - uses : actions-rs/ toolchain@v1
462
+ - uses : actions/checkout@v4
463
+ - uses : dtolnay/rust- toolchain@stable
477
464
with :
478
- profile : minimal
479
465
toolchain : stable
480
- override : true
481
466
- env :
482
467
FFMPEG_INCLUDE_DIR : ${{ github.workspace }}/ffmpeg_prebuilt/include
483
468
FFMPEG_DLL_PATH : ${{ github.workspace }}/ffmpeg_prebuilt/lib/libffmpeg.so
@@ -558,12 +543,10 @@ jobs:
558
543
cp -r ./build ~/ffmpeg_prebuilt
559
544
cd ../..
560
545
561
- - uses : actions/checkout@v2
562
- - uses : actions-rs/ toolchain@v1
546
+ - uses : actions/checkout@v4
547
+ - uses : dtolnay/rust- toolchain@stable
563
548
with :
564
- profile : minimal
565
549
toolchain : stable
566
- override : true
567
550
- env :
568
551
FFMPEG_INCLUDE_DIR : ${{ github.workspace }}/ffmpeg_prebuilt/include
569
552
FFMPEG_DLL_PATH : ${{ github.workspace }}/ffmpeg_prebuilt/lib/libffmpeg.dylib
@@ -661,7 +644,7 @@ jobs:
661
644
cd ../..
662
645
663
646
- name : Upload Cross Compiled FFmpeg for Windows
664
- uses : actions/upload-artifact@v2
647
+ uses : actions/upload-artifact@v4
665
648
with :
666
649
name : cross_ffmpeg
667
650
path : ffmpeg/build/build
@@ -670,17 +653,14 @@ jobs:
670
653
runs-on : windows-latest
671
654
needs : build_dynamic_and_test_windows_pre
672
655
steps :
673
- - uses : actions/checkout@v2
674
-
675
- - uses : actions-rs/toolchain@v1
656
+ - uses : actions/checkout@v4
657
+ - uses : dtolnay/rust-toolchain@stable
676
658
with :
677
- target : i686-pc-windows-msvc
678
- profile : minimal
679
659
toolchain : stable
680
- override : true
660
+ targets : i686-pc-windows-msvc
681
661
682
662
- name : Download Cross Compiled FFmpeg for Windows
683
- uses : actions/download-artifact@v2
663
+ uses : actions/download-artifact@v4
684
664
with :
685
665
name : cross_ffmpeg
686
666
path : ${{ github.workspace }}/ffmpeg_prebuilt_cross
@@ -706,12 +686,10 @@ jobs:
706
686
docs_rs_check :
707
687
runs-on : ubuntu-latest
708
688
steps :
709
- - uses : actions/checkout@v2
710
- - uses : actions-rs/ toolchain@v1
689
+ - uses : actions/checkout@v4
690
+ - uses : dtolnay/rust- toolchain@stable
711
691
with :
712
- profile : minimal
713
692
toolchain : stable
714
- override : true
715
693
716
694
# https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
717
695
- name : Install FFmpegBuildTools
0 commit comments