Skip to content

Fix transient errors #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from 6 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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
push:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
check-environment:
name: Check environmnent
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@ on: [push]

name: CI

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust for Xtensa
uses: esp-rs/xtensa-toolchain@v1.3
uses: esp-rs/xtensa-toolchain@v1.5
with:
default: true
version: "1.63.0"
version: "1.66.0"
ldproxy: true

# `cargo check` command here will use installed `esp` toolchain, as it
Expand All @@ -38,6 +41,12 @@ jobs:
with:
command: check
```
> **Note**
> `GITHUB_TOKEN` environment variable needs to be [defined in the action], otherwise, the workflow may fail some times,
see [#15] for details.

[defined in the action]: https://docs.github.com/en/actions/learn-github-actions/variables
[#15]: https://github.com/esp-rs/xtensa-toolchain/issues/15

## Inputs

Expand Down
6 changes: 5 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ runs:
- name: Install Xtensa toolchain
shell: bash
run: |
bash ${{ github.action_path }}/install.sh ${{ inputs.buildtargets }} ${{ inputs.version }}
[[ "${{ inputs.version }}" != latest ]] && version="--toolchain-version ${{ inputs.version }}" || version=""
$HOME/.cargo/bin/espup install -l debug --export-file $HOME/exports --targets ${{ inputs.buildtargets }} $version
source "$HOME/exports"
echo "$PATH" >>"$GITHUB_PATH"
echo "LIBCLANG_PATH=${LIBCLANG_PATH}" >>"$GITHUB_ENV"
[[ "${{ inputs.default }}" = true ]] && rustup default esp || true
[[ "${{ inputs.override }}" = true ]] && rustup override unset || true
71 changes: 0 additions & 71 deletions install.sh

This file was deleted.