Skip to content

Commit

Permalink
Simplified systems build (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Rauer authored Mar 11, 2022
1 parent 84355b0 commit d7c34ae
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 74 deletions.
6 changes: 0 additions & 6 deletions .github/actions/build/.dockerignore

This file was deleted.

39 changes: 0 additions & 39 deletions .github/actions/build/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions .github/actions/build/action.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/actions/build/entrypoint.sh

This file was deleted.

25 changes: 19 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ jobs:
build:
name: Build Nerves system
runs-on: ubuntu-latest
container: nervesproject/nerves_system_br:1.18.5
env:
ELIXIR_VERSION: 1.12.3-otp-24
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -15,16 +18,26 @@ jobs:
uses: actions/cache@v2
with:
path: |
nerves-buildroot-cache
~/.nerves/dl
key: buildroot-cache-${{ hashFiles('VERSION', 'mix.lock') }}
restore-keys: |
buildroot-cache-
buidroot-dl-
- name: Build
uses: ./.github/actions/build
- name: Setup elixir
run: |
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: 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 $GITHUB_WORKSPACE/nerves-buildroot-cache/ly11_system_rpi4-portable*
rm -rf $HOME/.nerves/dl/ly11_system_rpi4-portable*
- name: Upload S3
uses: jakejarvis/s3-sync-action@master
with:
Expand All @@ -34,7 +47,7 @@ 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: 'dist'
SOURCE_DIR: $HOME/.nerves/dl
- name: Upload Artifacts
if: contains(github.ref, 'tags')
uses: svenstaro/upload-release-action@v2
Expand All @@ -52,5 +65,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: 'nerves-buildroot-cache'
SOURCE_DIR: $HOME/.nerves/dl
continue-on-error: true

0 comments on commit d7c34ae

Please sign in to comment.