Commit 22c1ceb27597d21779c7565c94c444dadc606478

Anthony Green 2022-09-03T09:42:01

Simplify remote tests

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 60e2e08..58478db 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -122,41 +122,11 @@ jobs:
           (cd autoconf-2.71; ./configure --prefix=$HOME/i; make; make install)
           rm -rf autoconf-2.71
           PATH=$HOME/i/bin:$PATH ./autogen.sh
+          echo $${{ secrets.CFARM_KEY }} > /tmp/cfk
+          ssh -i /tmp/cfk ${{ matrix.CFARM_HOST }} "mkdir -p t/$GITHUB_RUN_NUMBER"
+          rsync -avrz -e "ssh -i /tmp/cfk" * ${{ matrix.CFARM_HOST }}:t/$GITHUB_RUN_NUMBER
+          ssh -i /tmp/cfk ${{ matrix.CFARM_HOST }} "(cd t/$GITHUB_RUN_NUMBER; ./configure; make; make check)"
 
-      - name: SSH Remote Commands
-        uses: appleboy/ssh-action@v0.1.5
-        with:
-          host: ${{ matrix.CFARM_HOST }}
-          username: ${{ secrets.CFARM_USERNAME }}
-          key: ${{ secrets.CFARM_KEY }}
-          port: ${{ matrix.CFARM_PORT }}
-          script: |
-            env
-            mkdir -p new/${{ env.GITHUB_RUN_NUMBER }}
-
-      - name: copy files for remote Aarch64 server
-        uses: burnett01/rsync-deployments@5.2.1
-        with:
-          switches: -avzr
-          path: .
-          remote_path: new/${{ env.GITHUB_RUN_NUMBER }}
-          remote_host: ${{ secrets.AARCH_HOST }}
-          remote_user: ${{ secrets.CFARM_USERNAME }}
-          remote_key: ${{ secrets.CFARM_KEY }}
-
-      - name: SSH Remote Commands
-        uses: appleboy/ssh-action@v0.1.5
-        with:
-          host: ${{ matrix.CFARM_HOST }}
-          username: ${{ secrets.CFARM_USERNAME }}
-          key: ${{ secrets.CFARM_KEY }}
-          port: ${{ matrix.CFARM_PORT }}
-          script: |
-            ls -l
-            cd new/${{ env.GITHUB_RUN_NUMBER }}
-            ./configure
-            make
-            make check
 
   build:
     name: Build & test with Cygwin