Skip to content

Commit 497ced2

Browse files
authored
Use correct release for enet6 (#10)
1 parent e9a007d commit 497ced2

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,17 @@ jobs:
5151
enet6-mingw32:
5252
runs-on: ubuntu-24.04
5353
steps:
54-
- name: Checkout enet6
55-
uses: actions/checkout@v4
56-
with:
57-
repository: SirLynix/enet6
58-
ref: master
59-
path: enet6
60-
- name: Package files
54+
- name: Download enet6 release
6155
run: |
62-
mkdir -p ${{github.workspace}}/enet6/build/src
63-
cp -r ${{github.workspace}}/enet6/include ${{github.workspace}}/enet6/build/
64-
cp ${{github.workspace}}/enet6/*.c ${{github.workspace}}/enet6/build/src/
56+
curl -L -o enet6.zip https://github.com/SirLynix/enet6/releases/download/v6.1.3/enet6-mingw_i386_release_static.zip
57+
unzip enet6.zip -d ${{github.workspace}}/enet6
6558
- name: Upload artifact
6659
uses: actions/upload-artifact@v4
6760
with:
6861
name: enet6-mingw32
6962
path: |
70-
${{github.workspace}}/enet6/build/include
71-
${{github.workspace}}/enet6/build/src
63+
${{github.workspace}}/enet6/include
64+
${{github.workspace}}/enet6/lib/libenet6.a
7265
7366
spng-mingw32:
7467
runs-on: ubuntu-24.04
@@ -515,24 +508,17 @@ jobs:
515508
enet6-mingw64:
516509
runs-on: ubuntu-24.04
517510
steps:
518-
- name: Checkout enet6
519-
uses: actions/checkout@v4
520-
with:
521-
repository: SirLynix/enet6
522-
ref: master
523-
path: enet6
524-
- name: Package files
511+
- name: Download enet6 release
525512
run: |
526-
mkdir -p ${{github.workspace}}/enet6/build/src
527-
cp -r ${{github.workspace}}/enet6/include ${{github.workspace}}/enet6/build/
528-
cp ${{github.workspace}}/enet6/*.c ${{github.workspace}}/enet6/build/src/
513+
curl -L -o enet6.zip https://github.com/SirLynix/enet6/releases/download/v6.1.3/enet6-mingw_x86_64_release_static.zip
514+
unzip enet6.zip -d ${{github.workspace}}/enet6
529515
- name: Upload artifact
530516
uses: actions/upload-artifact@v4
531517
with:
532518
name: enet6-mingw64
533519
path: |
534-
${{github.workspace}}/enet6/build/include
535-
${{github.workspace}}/enet6/build/src
520+
${{github.workspace}}/enet6/include
521+
${{github.workspace}}/enet6/lib/libenet6.a
536522
537523
spng-mingw64:
538524
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)