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