"Fossies" - the Fresh Open Source Software Archive

Member "snapcraft-3.8/tests/spread/plugins/rust/cross-compile/task.yaml" (9 Sep 2019, 597 Bytes) of package /linux/misc/snapcraft-3.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "task.yaml": 3.7.2_vs_3.8.

    1 summary: Cross-compile a rust snap
    2 
    3 systems:
    4   - ubuntu-16.04-amd64
    5   - ubuntu-18.04-amd64
    6 
    7 environment:
    8   SNAP_DIR: ../snaps/rust-hello
    9 
   10 prepare: |
   11   #shellcheck source=tests/spread/tools/snapcraft-yaml.sh
   12   . "$TOOLS_DIR/snapcraft-yaml.sh"
   13   set_base "$SNAP_DIR/snap/snapcraft.yaml"
   14 
   15 restore: |
   16   cd "$SNAP_DIR"
   17   snapcraft clean
   18   rm -f ./*.snap
   19 
   20   #shellcheck source=tests/spread/tools/snapcraft-yaml.sh
   21   . "$TOOLS_DIR/snapcraft-yaml.sh"
   22   restore_yaml "snap/snapcraft.yaml"
   23 
   24 execute: |
   25   cd "$SNAP_DIR"
   26   snapcraft stage --target-arch=armhf
   27   file stage/bin/rust-hello | MATCH ',\s*ARM\s*,'