Skip to content

Commit 809dbd2

Browse files
authoredOct 14, 2024
Upgrade checkout and upload-artifacts actions (#12880)
1 parent c117e94 commit 809dbd2

File tree

7 files changed

+33
-16
lines changed

7 files changed

+33
-16
lines changed
 

‎.github/workflows/bgfxshaders.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
- uses: msys2/setup-msys2@v2
2424
with:
2525
install: git make mingw-w64-x86_64-gcc mingw-w64-x86_64-python mingw-w64-x86_64-libc++
26-
- uses: actions/checkout@master
26+
- uses: actions/checkout@main
27+
with:
28+
fetch-depth: 0
2729
- name: Prevent make from rebuilding GLSL parser source
2830
run: |
2931
touch 3rdparty/bgfx/3rdparty/glsl-optimizer/src/glsl/glcpp/glcpp-lex.c
@@ -35,7 +37,8 @@ jobs:
3537
env:
3638
MINGW64: "/mingw64"
3739
run: make shaders
38-
- uses: actions/upload-artifact@master
40+
- uses: actions/upload-artifact@main
3941
with:
4042
name: mame-bgfx-${{ github.sha }}
4143
path: bgfx/shaders
44+
if-no-files-found: error

‎.github/workflows/ci-linux.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ permissions:
2424
contents: read
2525

2626
jobs:
27-
2827
build-linux:
2928
runs-on: ubuntu-latest
3029
strategy:
@@ -43,7 +42,9 @@ jobs:
4342
subtarget: mame
4443
executable: mame
4544
steps:
46-
- uses: actions/checkout@master
45+
- uses: actions/checkout@main
46+
with:
47+
fetch-depth: 0
4748
- name: Install dependencies
4849
run: |
4950
sudo apt-get update
@@ -65,10 +66,11 @@ jobs:
6566
run: ./${{ matrix.executable }} -listxml | python scripts/build/makedep.py reconcilelist -l src/mame/${{ matrix.subtarget }}.lst -
6667
- name: ORM check
6768
run: python scripts/minimaws/minimaws.py load --executable ./${{ matrix.executable }} --softwarepath hash
68-
- uses: actions/upload-artifact@master
69+
- uses: actions/upload-artifact@main
6970
with:
7071
name: ${{ matrix.executable }}-linux-${{ matrix.compiler }}-${{ github.sha }}
7172
path: |
7273
${{ matrix.executable }}
7374
chdman
7475
unidasm
76+
if-no-files-found: error

‎.github/workflows/ci-macos.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ permissions:
2222
contents: read
2323

2424
jobs:
25-
2625
build-macos:
2726
runs-on: macOS-latest
2827
steps:
29-
- uses: actions/checkout@master
28+
- uses: actions/checkout@main
29+
with:
30+
fetch-depth: 0
3031
- name: Install dependencies
3132
run: brew install python3 sdl2
3233
- name: Build
@@ -36,10 +37,11 @@ jobs:
3637
run: make -j2
3738
- name: Validate
3839
run: ./mame -validate
39-
- uses: actions/upload-artifact@master
40+
- uses: actions/upload-artifact@main
4041
with:
4142
name: mame-macos-${{ github.sha }}
4243
path: |
4344
mame
4445
chdman
4546
unidasm
47+
if-no-files-found: error

‎.github/workflows/ci-windows.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ permissions:
2222
contents: read
2323

2424
jobs:
25-
2625
build-windows:
2726
runs-on: windows-latest
2827
defaults:
@@ -46,7 +45,9 @@ jobs:
4645
- uses: msys2/setup-msys2@v2
4746
with:
4847
install: git make mingw-w64-x86_64-${{ matrix.compiler }} mingw-w64-x86_64-python mingw-w64-x86_64-lld mingw-w64-x86_64-llvm mingw-w64-x86_64-libc++
49-
- uses: actions/checkout@master
48+
- uses: actions/checkout@main
49+
with:
50+
fetch-depth: 0
5051
- name: Build
5152
env:
5253
MINGW64: "/mingw64"
@@ -59,10 +60,11 @@ jobs:
5960
run: make -j3
6061
- name: Validate
6162
run: ./${{ matrix.executable }}.exe -validate
62-
- uses: actions/upload-artifact@master
63+
- uses: actions/upload-artifact@main
6364
with:
6465
name: ${{ matrix.executable }}-windows-${{ matrix.compiler }}-${{ github.sha }}
6566
path: |
6667
${{ matrix.executable }}.exe
6768
chdman.exe
6869
unidasm.exe
70+
if-no-files-found: error

‎.github/workflows/docs.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
build-docs:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@master
20+
- uses: actions/checkout@main
21+
with:
22+
fetch-depth: 0
2123
- name: Install dependencies
2224
run: |
2325
sudo apt-get update
@@ -27,9 +29,10 @@ jobs:
2729
run: make -C docs html
2830
- name: Build PDF
2931
run: make -C docs latexpdf
30-
- uses: actions/upload-artifact@master
32+
- uses: actions/upload-artifact@main
3133
with:
3234
name: mame-docs-${{ github.sha }}
3335
path: |
3436
docs/build/html
3537
docs/build/latex/MAME.pdf
38+
if-no-files-found: error

‎.github/workflows/hash.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
validate:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@master
24+
- uses: actions/checkout@main
25+
with:
26+
fetch-depth: 0
2527
- name: Install dependencies
2628
run: |
2729
sudo apt-get update

‎.github/workflows/language.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ jobs:
1717
build-language:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@master
20+
- uses: actions/checkout@main
21+
with:
22+
fetch-depth: 0
2123
- name: Compile message catalogs
2224
run: for x in language/*/*.po ; do python scripts/build/msgfmt.py --output-file "`dirname "$x"`/`basename "$x" .po`.mo" "$x" ; done
23-
- uses: actions/upload-artifact@master
25+
- uses: actions/upload-artifact@main
2426
with:
2527
name: mame-language-${{ github.sha }}
2628
path: language/*/*.mo
29+
if-no-files-found: error

0 commit comments

Comments
 (0)
Please sign in to comment.