diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8421e1fdc333435446abe0798464a0ddd5d4faf3..75ad5bc3c55e97161ea5d7b4517eaf8942c304a8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -21,12 +21,10 @@ jobs:
         run: sudo apt-get -y update && sudo apt-get install -y --no-install-recommends gfortran libopenmpi-dev ninja-build libssl-dev python3 libpython3-dev python3-pip libblas-dev liblapack-dev
       
       - name: Build XACC
-        working-directory: $HOME
-        run: git clone --recursive https://github.com/eclipse/xacc && cd xacc && mkdir build && cd build && cmake .. -GNinja && cmake --build . --target install
+        run: cd $HOME && git clone --recursive https://github.com/eclipse/xacc && cd xacc && mkdir build && cd build && cmake .. -GNinja && cmake --build . --target install
       
       - name: Build ExaTN
-        working-directory: $HOME
-        run: git clone --recursive https://github.com/ornl-qci/exatn && cd exatn && mkdir build && cd build && cmake .. -DBLAS_LIB=ATLAS -DBLAS_PATH=/usr/lib/x86_64-linux-gnu && make -j$(nproc) install
+        run: cd $HOME && git clone --recursive https://github.com/ornl-qci/exatn && cd exatn && mkdir build && cd build && cmake .. -DBLAS_LIB=ATLAS -DBLAS_PATH=/usr/lib/x86_64-linux-gnu && make -j$(nproc) install
 
       - name: Configure
         working-directory: build/