[rmkit] re-open devices when we detect an invalid file descriptor #422
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "release" | |
on: | |
push: | |
branches: | |
- build | |
- stable | |
- master | |
- kobo | |
- fbink | |
jobs: | |
pre-release: | |
name: "release" | |
runs-on: "ubuntu-latest" | |
env: | |
ssh_host: ${{ secrets.HOST }} | |
ssh_username: ${{ secrets.USERNAME }} | |
ssh_password: ${{ secrets.PASSWORD }} | |
steps: | |
- name: "Checkout source" | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: "Build artifacts" | |
run: | | |
CROSS_TC=arm-kobo-linux-gnueabihf DOCKERFILE=Dockerfile.kobo FBINK=1 TARGET=kobo make docker | |
TARGET=rm make docker | |
- name: "Declare vars" | |
id: vars | |
shell: bash | |
run: | | |
echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_OUTPUT" | |
echo "sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" | |
echo "date=$(date -- +%Y%m%d_%H%M)" >> "$GITHUB_OUTPUT" | |
- name: "Copy artifacts" | |
run: cp artifacts/ ${{ steps.vars.outputs.date }}_${{ steps.vars.outputs.sha }} -R | |
- name: copy artifacts to GITHUB_SHA | |
if: ${{ env.ssh_host != '' }} | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ env.ssh_host }} | |
username: ${{ env.ssh_username }} | |
password: ${{ env.ssh_password }} | |
port: 22 | |
source: ${{ steps.vars.outputs.date }}_${{ steps.vars.outputs.sha }} | |
target: build/${{ steps.vars.outputs.branch }} | |
- name: copy artifacts to latest/ | |
if: ${{ env.ssh_host != '' }} | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ env.ssh_host }} | |
username: ${{ env.ssh_username }} | |
password: ${{ env.ssh_password }} | |
port: 22 | |
source: artifacts/* | |
strip_components: 1 | |
target: build/${{ steps.vars.outputs.branch }}/latest | |
- name: Upload artifacts | |
if: ${{ env.ssh_host == '' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts | |
path: artifacts/ | |