Skip to content

Commit

Permalink
Change display rotation for waveshare display
Browse files Browse the repository at this point in the history
  • Loading branch information
ericr3r committed Mar 21, 2022
1 parent d7c34ae commit e22a2ff
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: push

jobs:
build:
name: Build Nerves system
name: Build Nerves system
runs-on: ubuntu-latest
container: nervesproject/nerves_system_br:1.18.5
env:
Expand All @@ -25,20 +25,30 @@ jobs:
buidroot-dl-
- name: Setup elixir
run: |
wget https://repo.hex.pm/builds/elixir/v$ELIXIR_VERSION.zip
wget https://repo.hex.pm/builds/elixir/v$ELIXIR_VERSION.zip
unzip -d /usr/local/elixir v$ELIXIR_VERSION.zip
echo "/usr/local/elixir/bin" >> $GITHUB_PATH
- name: Clear Existing Artifacts
run: |
rm -rf $HOME/.nerves/dl/ly11_system_rpi4-portable*
- name: build
run: |
apt-get update
apt-get install -y u-boot-tools
mkdir -p /root/local
mkdir -p /root/empty
make dist
- name: Clear Artifacts
run: |
rm -rf $HOME/.nerves/dl/ly11_system_rpi4-portable*
- name: Upload S3
- name: Upload S3 Artifacts
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-1'
SOURCE_DIR: dist
- name: Upload S3 Cache
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
Expand All @@ -48,12 +58,16 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-1'
SOURCE_DIR: $HOME/.nerves/dl
- name: List Artifacts
if: contains(github.ref, 'tags')
run: |
ls $HOME/.nerves/dl/ly11_system_rpi4-portable*
- name: Upload Artifacts
if: contains(github.ref, 'tags')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
file: /github/home/.nerves/dl/ly11_system_rpi4-portable*
file_glob: true
tag: ${{ github.ref }}
- name: Upload Buildroot cache
Expand All @@ -65,5 +79,5 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-1'
SOURCE_DIR: $HOME/.nerves/dl
SOURCE_DIR: $HOME/.nerves/dl
continue-on-error: true
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.18.15
0.18.16
1 change: 1 addition & 0 deletions config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ hdmi_group=2
hdmi_force_hotplug=1
hdmi_mode=87
hdmi_timings=1080 1 26 4 50 1920 1 8 2 6 0 0 0 60 0 135580000 3
display_rotate=1

[all]
max_framebuffer_width=1080
Expand Down

0 comments on commit e22a2ff

Please sign in to comment.