mirror of
https://github.com/lbl8603/vnt.git
synced 2026-04-22 23:47:08 +08:00
update
This commit is contained in:
+19
-21
@@ -14,23 +14,23 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
# test:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: Init submodules
|
||||
# uses: snickerbockers/submodules-init@v4
|
||||
# - name: Cargo cache
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: |
|
||||
# ~/.cargo/registry
|
||||
# ./target
|
||||
# key: test-cargo-registry
|
||||
# - name: List
|
||||
# run: find ./
|
||||
# - name: Run tests
|
||||
# run: cargo test --verbose
|
||||
# test:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: Init submodules
|
||||
# uses: snickerbockers/submodules-init@v4
|
||||
# - name: Cargo cache
|
||||
# uses: actions/cache@v2
|
||||
# with:
|
||||
# path: |
|
||||
# ~/.cargo/registry
|
||||
# ./target
|
||||
# key: test-cargo-registry
|
||||
# - name: List
|
||||
# run: find ./
|
||||
# - name: Run tests
|
||||
# run: cargo test --verbose
|
||||
|
||||
build:
|
||||
strategy:
|
||||
@@ -86,9 +86,8 @@ jobs:
|
||||
# dependencies are only needed on ubuntu as that's the only place where
|
||||
# we make cross-compilation
|
||||
if [[ $OS =~ ^ubuntu.*$ ]]; then
|
||||
sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf
|
||||
sudo apt-get update && sudo apt-get install -qq crossbuild-essential-arm64 crossbuild-essential-armhf
|
||||
fi
|
||||
|
||||
# some additional configuration for cross-compilation on linux
|
||||
cat >>~/.cargo/config <<EOF
|
||||
[target.aarch64-unknown-linux-gnu]
|
||||
@@ -132,7 +131,6 @@ jobs:
|
||||
name: switch-desktop
|
||||
path: |
|
||||
./artifacts
|
||||
|
||||
# deploys to github releases on tag
|
||||
deploy:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
@@ -153,4 +151,4 @@ jobs:
|
||||
file: ./artifacts/*.tar.gz
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
file_glob: true
|
||||
file_glob: true
|
||||
Reference in New Issue
Block a user