diff --git a/.github/workflows/macosx_cpn.yml b/.github/workflows/macosx_cpn.yml
index 9ac019fedb8..47bad887bb6 100644
--- a/.github/workflows/macosx_cpn.yml
+++ b/.github/workflows/macosx_cpn.yml
@@ -87,14 +87,16 @@ jobs:
           tar xfv dfu-util-0.11.tar.gz &&
           cd dfu-util-0.11 &&
           ./configure &&
-          make install
+          make install &&
+          cd ..
 
       - name: Install openssl
         run:  wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz &&
           tar xfv openssl-1.1.1w.tar.gz &&
           cd openssl-1.1.1w &&
-          ./config &&
-          make install
+          ./Configure &&
+          make &&
+          cd ..
 
       - name: Install SDL2
         run:  brew install SDL2