forked from build-trust/ockam
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (72 loc) · 2.12 KB
/
Copy pathockam_command.yml
File metadata and controls
82 lines (72 loc) · 2.12 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Ockam Command Test
permissions:
contents: read
on:
workflow_dispatch:
inputs:
commit_sha:
description: SHA to test workflow
pull_request:
paths:
- ".github/workflows/ockam_command.yml"
- "**.rs"
- "**.toml"
- "**/Cargo.lock"
- "implementations/rust/ockam/ockam_command/tests/commands.bats"
- ".github/actions/**"
push:
paths:
- ".github/workflows/ockam_command.yml"
- "**.rs"
- "**.toml"
- "**/Cargo.lock"
- "implementations/rust/ockam/ockam_command/tests/commands.bats"
- ".github/actions/**"
branches:
- develop
schedule:
- cron: "0 1 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
env:
OCKAM_DISABLE_UPGRADE_CHECK: 1
jobs:
ockam_command_test:
name: Test Ockam Command
strategy:
fail-fast: false
matrix:
build: [linux_86]
include:
- build: linux_86
os: ubuntu-20.04
rust: stable
target: x86_64-unknown-linux-gnu
container: "ghcr.io/build-trust/ockam-builder@sha256:26c5bba9deca18953043a3a2368ec6bb00035676965432f35be24f88e316363a"
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
steps:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
ref: ${{ github.event.inputs.release_branch }}
- name: Use cache cargo_home
uses: ./.github/actions/cargo_home_cache
- name: Use cache cargo_target
uses: ./.github/actions/cargo_target_dir_cache
- name: Build Binary
shell: bash
run: |
rustc --version
set -x
cargo build --bin ockam
- name: Run Script On Ubuntu
if: matrix.build == 'linux_86'
shell: bash
run: |
export PATH=$(pwd)/target/debug:$PATH;
cd implementations/rust/ockam/ockam_command/tests;
bats commands.bats;
- name: Prep cache cargo_target before persisting
uses: ./.github/actions/cargo_target_dir_pre_cache