Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/test-compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 'test-compile'

on:
pull_request:

jobs:
compile:
runs-on: 'ubuntu-latest'
steps:

- name: Check CPU usage before build

Check failure on line 11 in .github/workflows/test-compile.yml

View workflow job for this annotation

GitHub Actions / lint (yaml)

11:15 [quoted-strings] string value is not quoted with single quotes
run: |
echo "CPU info:"
nproc
echo "Load average:"
uptime
shell: bash

Check failure on line 17 in .github/workflows/test-compile.yml

View workflow job for this annotation

GitHub Actions / lint (yaml)

17:16 [quoted-strings] string value is not quoted with single quotes

- name: Check CPU usage before build

Check failure on line 19 in .github/workflows/test-compile.yml

View workflow job for this annotation

GitHub Actions / lint (yaml)

19:15 [quoted-strings] string value is not quoted with single quotes
run: |
echo "CPU info:"
nproc
echo "Load average:"
uptime
shell: bash

Check failure on line 25 in .github/workflows/test-compile.yml

View workflow job for this annotation

GitHub Actions / lint (yaml)

25:16 [quoted-strings] string value is not quoted with single quotes

- name: 'test compile rust'
shell: 'bash'
env:
CARGO_TARGET_DIR: '${{ runner.temp }}'
run: |

Check failure on line 31 in .github/workflows/test-compile.yml

View workflow job for this annotation

GitHub Actions / lint (github)

.github/workflows/test-compile.yml@31 shellcheck reported issue in this script: SC2002:style:6:21: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead ``` run: | ^~~~ ```
set -eux
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt install cargo build-essential libudev-dev openssl libssl-dev linux-tools-common gcc-multilib libssl-dev:i386 \
&& cargo install probe-rs-tools --timings 2>&1 | tee output.txt
timings_file="$(cat output.txt | grep 'Timing report saved to ' | awk '{print $NF}')"
cat "${timings_file}"

Check failure on line 39 in .github/workflows/test-compile.yml

View workflow job for this annotation

GitHub Actions / lint (yaml)

39:1 [trailing-spaces] trailing spaces
- name: Check CPU usage before build

Check failure on line 40 in .github/workflows/test-compile.yml

View workflow job for this annotation

GitHub Actions / lint (yaml)

40:15 [quoted-strings] string value is not quoted with single quotes
run: |
echo "CPU info:"
nproc
echo "Load average:"
uptime
shell: bash

Check failure on line 46 in .github/workflows/test-compile.yml

View workflow job for this annotation

GitHub Actions / lint (yaml)

46:16 [quoted-strings] string value is not quoted with single quotes
Comment on lines +8 to +46

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Loading