Simplify remote tests
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
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