Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ivmarkov/rust-esp32-std-demo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: bakery/rust-esp32-std-demo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 2 contributors

Commits on Apr 29, 2022

  1. CI (#1)

    * wip
    
    * try container
    
    * runs on
    
    * rustup toolchain check
    
    * build and debug
    
    * fix build command
    
    * espflash
    
    * install espflash
    
    * package prereqs
    
    * apt install instead
    
    * try sudo
    
    * remove container
    
    * clean
    
    * install toolchain manually
    
    * raw
    
    * rustup
    
    * no sudo
    
    * reconfigure toolchain nightly-x86_64-unknown-linux-gnu
    
    * back to docker
    
    * try cargo-espflash instead
    
    * Update ci.yml
    
    * Update ci.yml
    
    * Update ci.yml
    
    * Update ci.yml
    
    * Update ci.yml
    
    * Update ci.yml
    
    * firmware release action
    
    * clean up
    
    * missing settings
    
    * get version
    
    * version on get version
    
    * debug cargo get version
    
    * echo github build id artifacts
    
    * try updating version data
    
    * fix commit
    
    * git config
    
    * push action
    
    * update build number to 2238798110
    
    * update version field in cargo
    
    * overwrite cargo.toml
    
    * use overwrite flag
    
    * build 0.24.2240398888
    
    * bring the rest of the ci flow back
    
    * build 0.24.2240429436
    
    * use run number instead
    
    * build 0.24.43
    
    * cleanup
    
    * build 0.24.45
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    callmephilip and github-actions[bot] authored Apr 29, 2022
    Copy the full SHA
    2df893c View commit details
Showing with 34 additions and 23 deletions.
  1. +33 −22 .github/workflows/ci.yml
  2. +1 −1 Cargo.toml
55 changes: 33 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -3,35 +3,46 @@ name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '50 6 * * *'
- ci

env:
rust_toolchain: nightly-2022-04-07
cargo_file_path: ./Cargo.toml

jobs:
compile:
name: Compile
name: Build
runs-on: ubuntu-latest
container: espressif/idf-rust-examples
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Rust
uses: actions-rs/toolchain@v1
- uses: fregante/setup-git-user@v1.0.1
- name: Cargo | Set version
id: cargo-set-version
uses: "bakery/actions-cargo-set-version@v1.4.0"
with:
toolchain: ${{ env.rust_toolchain }}
components: rustfmt, clippy
- name: Setup | Std
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu
- name: Setup | Default to nightly
run: rustup default ${{ env.rust_toolchain }}
- name: Setup | ldproxy
run: cargo install ldproxy
- name: Build | Fmt Check
run: cargo fmt -- --check
- name: Build | Clippy
run: export RUST_ESP32_STD_DEMO_WIFI_SSID=ssid; export RUST_ESP32_STD_DEMO_WIFI_PASS=pass; cargo clippy --no-deps --target riscv32imc-esp-espidf -- -Dwarnings
- name: Build | Compile
run: export RUST_ESP32_STD_DEMO_WIFI_SSID=ssid; export RUST_ESP32_STD_DEMO_WIFI_PASS=pass; cargo build --target riscv32imc-esp-espidf
cargoFile: "${{ env.cargo_file_path }}"
version: "${{ github.run_number }}"
buildNumberOnly: true
overwriteCargoFile: true
- name: Add and commit
run: git add ${{ env.cargo_file_path }}
- name: Add and commit
run: git commit -m "build ${{ steps.cargo-set-version.outputs.version }}"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Configure | Esp toolchain
run: rustup default esp
- name: Build | Cargo
run: export RUST_ESP32_STD_DEMO_WIFI_SSID=ssid; export RUST_ESP32_STD_DEMO_WIFI_PASS=pass; cargo espflash save-image firmware-${{ steps.cargo-set-version.outputs.version }}.bin
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.cargo-set-version.outputs.version }}"
prerelease: true
title: "Firmware build ${{ steps.cargo-set-version.outputs.version }}"
files: |
firmware-${{ steps.cargo-set-version.outputs.version }}.bin
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-esp32-std-demo"
version = "0.24.0"
version = "0.24.45"
authors = ["ivmarkov"]
edition = "2018"
categories = ["embedded", "hardware-support"]