Upgrade setup-python workflows (#670)
* Upgrade setup-python in GitHub workflows * Updates all other GitHub actions * Fixes failing workflows * reverts coveralls workflow version
This commit is contained in:
4
.github/workflows/cargo_audit.yml
vendored
4
.github/workflows/cargo_audit.yml
vendored
@@ -8,10 +8,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'google/OpenSK'
|
if: github.repository == 'google/OpenSK'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "true"
|
submodules: "true"
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- name: Set up OpenSK
|
- name: Set up OpenSK
|
||||||
|
|||||||
6
.github/workflows/cargo_bloat.yml
vendored
6
.github/workflows/cargo_bloat.yml
vendored
@@ -6,7 +6,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Setup
|
# Setup
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
args: cargo-bloat
|
args: cargo-bloat
|
||||||
|
|
||||||
# First run: PR
|
# First run: PR
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Set up OpenSK
|
- name: Set up OpenSK
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
run: RUSTFLAGS="-C link-arg=-icf=all -C force-frame-pointers=no -C link-arg=-Tnrf52840_layout.ld" cargo bloat --release --target=thumbv7em-none-eabi --features=config_command,with_ctap1 --crates >> .github/workflows/bloat_output_new.txt
|
run: RUSTFLAGS="-C link-arg=-icf=all -C force-frame-pointers=no -C link-arg=-Tnrf52840_layout.ld" cargo bloat --release --target=thumbv7em-none-eabi --features=config_command,with_ctap1 --crates >> .github/workflows/bloat_output_new.txt
|
||||||
|
|
||||||
# Second run: PR
|
# Second run: PR
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
ref: ${{ github.base_ref }}
|
ref: ${{ github.base_ref }}
|
||||||
|
|||||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -23,8 +23,8 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- run: ./setup.sh
|
- run: ./setup.sh
|
||||||
|
|||||||
2
.github/workflows/cifuzz.yml
vendored
2
.github/workflows/cifuzz.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
fuzz-seconds: 600
|
fuzz-seconds: 600
|
||||||
dry-run: false
|
dry-run: false
|
||||||
- name: Upload Crash
|
- name: Upload Crash
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v4
|
||||||
if: failure() && steps.build.outcome == 'success'
|
if: failure() && steps.build.outcome == 'success'
|
||||||
with:
|
with:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
|
|||||||
4
.github/workflows/coveralls.yml
vendored
4
.github/workflows/coveralls.yml
vendored
@@ -13,12 +13,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "true"
|
submodules: "true"
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
run: rustup show
|
run: rustup show
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- name: Set up OpenSK
|
- name: Set up OpenSK
|
||||||
|
|||||||
4
.github/workflows/mdlint.yml
vendored
4
.github/workflows/mdlint.yml
vendored
@@ -12,9 +12,9 @@ jobs:
|
|||||||
mdlint:
|
mdlint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: markdownlint-cli
|
- name: markdownlint-cli
|
||||||
uses: nosborn/github-action-markdown-cli@v1.1.1
|
uses: nosborn/github-action-markdown-cli@v3
|
||||||
with:
|
with:
|
||||||
files: '**/*.md'
|
files: '**/*.md'
|
||||||
ignore_files: "third_party/*"
|
ignore_files: "third_party/*"
|
||||||
|
|||||||
6
.github/workflows/reproducible.yml
vendored
6
.github/workflows/reproducible.yml
vendored
@@ -13,12 +13,12 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "true"
|
submodules: "true"
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
run: rustup show
|
run: rustup show
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
- name: Set up OpenSK
|
- name: Set up OpenSK
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
run: ./maintainers/reproduce_hashes.sh
|
run: ./maintainers/reproduce_hashes.sh
|
||||||
|
|
||||||
- name: Upload reproduced binaries
|
- name: Upload reproduced binaries
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: reproduced-${{ matrix.os }}
|
name: reproduced-${{ matrix.os }}
|
||||||
path: reproducible/reproduced.tar
|
path: reproducible/reproduced.tar
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ might work for you.
|
|||||||
### Compiling the firmware
|
### Compiling the firmware
|
||||||
|
|
||||||
If this is your first time installing OpenSK, please skip directly to
|
If this is your first time installing OpenSK, please skip directly to
|
||||||
[Initial setup](#Initial-setup). Else, see
|
[Initial setup](#initial-setup). Else, see
|
||||||
[Updating your setup](#Updating-your-setup) below.
|
[Updating your setup](#updating-your-setup) below.
|
||||||
|
|
||||||
#### Updating your setup
|
#### Updating your setup
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ From here on, please follow the instructions for your hardware:
|
|||||||
### Advanced installation
|
### Advanced installation
|
||||||
|
|
||||||
We recommend that you flash your development board with JTAG and dongles with
|
We recommend that you flash your development board with JTAG and dongles with
|
||||||
DFU, as described in the [board documentation](#Flashing-a-firmware) linked
|
DFU, as described in the [board documentation](#flashing-a-firmware) linked
|
||||||
above. However, we support other programmers:
|
above. However, we support other programmers:
|
||||||
|
|
||||||
* OpenOCD: `./deploy.py --board=nrf52840_dongle_opensk --opensk
|
* OpenOCD: `./deploy.py --board=nrf52840_dongle_opensk --opensk
|
||||||
|
|||||||
Reference in New Issue
Block a user