Skip to content

Commit c82c7a2

Browse files
Remove "Release" CI steps
1 parent ada8208 commit c82c7a2

File tree

2 files changed

+4
-40
lines changed

2 files changed

+4
-40
lines changed

.github/workflows/build_and_test.yml

-36
Original file line numberDiff line numberDiff line change
@@ -54,42 +54,6 @@ jobs:
5454
run: |
5555
meson test -vC builddir
5656
57-
- if: matrix.os == 'windows-2019'
58-
name: Release (Windows)
59-
uses: ncipollo/release-action@v1
60-
with:
61-
allowUpdates: true
62-
replacesArtifacts: true
63-
tag: latest-win
64-
name: Lastest (Windows)
65-
artifacts: builddir/libDSPatch.a
66-
artifactContentType: application/octet-stream
67-
commit: ${{ github.sha }}
68-
69-
- if: matrix.os == 'macos-11'
70-
name: Release (MacOS)
71-
uses: ncipollo/release-action@v1
72-
with:
73-
allowUpdates: true
74-
replacesArtifacts: true
75-
tag: latest-mac
76-
name: Lastest (MacOS)
77-
artifacts: builddir/libDSPatch.a
78-
artifactContentType: application/octet-stream
79-
commit: ${{ github.sha }}
80-
81-
- if: matrix.os == 'ubuntu-20.04'
82-
name: Release (Linux)
83-
uses: ncipollo/release-action@v1
84-
with:
85-
allowUpdates: true
86-
replacesArtifacts: true
87-
tag: latest-linux
88-
name: Lastest (Linux)
89-
artifacts: builddir/libDSPatch.a
90-
artifactContentType: application/octet-stream
91-
commit: ${{ github.sha }}
92-
9357
# - if: matrix.os == 'windows-2019'
9458
# name: Build - Debug (Windows)
9559
# run: |

include/dspatch/Plugin.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Plugin::Plugin( const std::string& pluginPath )
9090
{
9191
// open library
9292
#ifdef _WIN32
93-
handle = LoadLibrary( pluginPath.c_str() );
93+
_handle = LoadLibrary( pluginPath.c_str() );
9494
#else
9595
_handle = dlopen( pluginPath.c_str(), RTLD_NOW );
9696
#endif
@@ -99,15 +99,15 @@ Plugin::Plugin( const std::string& pluginPath )
9999
{
100100
// load symbols
101101
#ifdef _WIN32
102-
create = (Create_t)GetProcAddress( (HMODULE)handle, "Create" );
102+
_create = (Create_t)GetProcAddress( (HMODULE)_handle, "Create" );
103103
#else
104104
_create = (Create_t)dlsym( _handle, "Create" );
105105
#endif
106106

107107
if ( !_create )
108108
{
109109
#ifdef _WIN32
110-
FreeLibrary( (HMODULE)handle );
110+
FreeLibrary( (HMODULE)_handle );
111111
#else
112112
dlclose( _handle );
113113
#endif
@@ -123,7 +123,7 @@ Plugin::~Plugin()
123123
if ( _handle )
124124
{
125125
#ifdef _WIN32
126-
FreeLibrary( (HMODULE)handle );
126+
FreeLibrary( (HMODULE)_handle );
127127
#else
128128
dlclose( _handle );
129129
#endif

0 commit comments

Comments
 (0)