@@ -4,11 +4,12 @@ name: CICD
44
55env :
66 PROJECT_NAME : sqlite_zstd
7- # PROJECT_DESC: "sqlite ♥ zstd"
8- # PROJECT_AUTH: "bootandy"
9- # RUST_MIN_SRV: "1.31.0"
10-
11- on : [push, pull_request]
7+ on :
8+ push :
9+ branches :
10+ - main
11+ - master
12+ pull_request :
1213
1314jobs :
1415 style :
@@ -65,21 +66,15 @@ jobs:
6566 # { os, target, cargo-options, features, use-cross, toolchain }
6667 - {
6768 os : ubuntu-latest,
68- target : arm-unknown-linux-gnueabihf,
69- use-cross : use-cross,
69+ target : x86_64-unknown-linux-gnu,
7070 features : build_extension,
7171 }
7272 - {
73- os : ubuntu-18.04 ,
74- target : x86_64 -unknown-linux-gnu ,
73+ os : ubuntu-latest ,
74+ target : arm -unknown-linux-gnueabihf ,
7575 use-cross : use-cross,
7676 features : build_extension,
7777 }
78- # - {
79- # os: ubuntu-18.04,
80- # target: x86_64-unknown-linux-musl,
81- # use-cross: use-cross,
82- # }
8378 - {
8479 os : macos-latest,
8580 target : x86_64-apple-darwin,
@@ -171,9 +166,11 @@ jobs:
171166 echo set-output name=CARGO_USE_CROSS::${CARGO_USE_CROSS:-<empty>/false}
172167 echo ::set-output name=CARGO_USE_CROSS::${CARGO_USE_CROSS}
173168 # * strip executable?
174- STRIP="strip" ; case ${{ matrix.job.target }} in arm-unknown-linux-gnueabihf) STRIP="arm-linux-gnueabihf-strip" ;; *-pc-windows-msvc) STRIP="" ;; esac;
169+ STRIP="strip" ; STRIP_PARAMS="" ; case ${{ matrix.job.target }} in arm-unknown-linux-gnueabihf) STRIP="arm-linux-gnueabihf-strip" ;; *-pc-windows-msvc) STRIP="" ;; *-apple-darwin) STRIP_PARAMS="-x " ;; esac;
175170 echo set-output name=STRIP::${STRIP}
176171 echo ::set-output name=STRIP::${STRIP}
172+ echo set-output name=STRIP_PARAMS::${STRIP_PARAMS}
173+ echo ::set-output name=STRIP_PARAMS::${STRIP_PARAMS}
177174 - name : Create all needed build/work directories
178175 shell : bash
179176 run : |
@@ -212,7 +209,7 @@ jobs:
212209 # binary
213210 cp 'target/${{ matrix.job.target }}/release/${{ steps.vars.outputs.LIB_FNAME }}' '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
214211 # `strip` binary (if needed)
215- if [ -n "${{ steps.vars.outputs.STRIP }}" ]; then "${{ steps.vars.outputs.STRIP }}" '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/${{ steps.vars.outputs.LIB_FNAME }}' ; fi
212+ if [ -n "${{ steps.vars.outputs.STRIP }}" ]; then "${{ steps.vars.outputs.STRIP }}" ${{ steps.vars.outputs.STRIP_PARAMS }} '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/${{ steps.vars.outputs.LIB_FNAME }}' ; fi
216213 # README and LICENSE
217214 cp README.md '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
218215 cp LICENSE '${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_BASENAME }}/'
0 commit comments