fix macos build
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1e3b890..e23d5de 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -45,13 +45,12 @@
     - name: Install Dependencies
       run: |
         brew install libfaketime openssl
-        which perl
-        curl -L https://cpanmin.us | perl - --notest --sudo App::cpanminus
-        cpanm --notest --sudo Scope::Guard Test::TCP
+        export PATH="$(brew --prefix perl)/bin:$PATH"
+        curl -sSfL https://cpanmin.us | perl - -v --notest Scope::Guard Test::TCP
 
     - name: Configure
       working-directory: ${{runner.workspace}}/build
-      run: cmake -DCMAKE_BUILD_TYPE=Debug -B. $GITHUB_WORKSPACE
+      run: cmake -B. $GITHUB_WORKSPACE
     - name: Build
       working-directory: ${{runner.workspace}}/build
       run: 	make -j4 all VERBOSE=1