|
42 | 42 | - name: Checkout |
43 | 43 | if: ${{ github.event_name == 'push' }} |
44 | 44 | uses: actions/checkout@master |
45 | | - |
46 | | - - name: Checkout gh-pages |
47 | | - if: ${{ github.event_name == 'push' }} |
48 | | - uses: actions/checkout@master |
49 | | - with: |
50 | | - path: gh-pages |
51 | | - ref: gh-pages |
52 | 45 |
|
53 | 46 | - name: Checkout agbcc |
54 | 47 | uses: actions/checkout@master |
|
58 | 51 |
|
59 | 52 | - name: Install tools |
60 | 53 | run: | |
61 | | - sudo apt update && sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi |
| 54 | + sudo apt update && sudo apt install gcc-arm-none-eabi binutils-arm-none-eabi xorg-dev |
62 | 55 | python3 -m pip install gitpython |
| 56 | + # build-essential, git, and libpng-dev are already installed |
| 57 | + # gcc-arm-none-eabi is only needed for the modern build |
| 58 | + # as an alternative to dkP |
63 | 59 |
|
64 | 60 | - name: Install agbcc |
65 | 61 | run: | |
|
78 | 74 | python3 scripts/progress.py text |
79 | 75 |
|
80 | 76 | - name: Generate reports |
81 | | - if: ${{ github.event_name == 'push' }} |
82 | 77 | run: | |
83 | 78 | mkdir -p gh-pages/reports |
84 | 79 | mkdir -p gh-pages/maps |
|
88 | 83 | python3 scripts/progress.py shield-json -m > gh-pages/reports/progress-sa1-shield-matching.json |
89 | 84 | echo "REPORTS_COMMIT_MSG=$( git log --format=%s ${GITHUB_SHA} )" >> $GITHUB_ENV |
90 | 85 | cp sa1.map gh-pages/maps/${GITHUB_SHA}.map |
91 | | -
|
92 | | - - name: Update reports |
| 86 | + |
| 87 | + - name: Upload progress |
| 88 | + if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} |
| 89 | + uses: actions/upload-artifact@v7 |
| 90 | + with: |
| 91 | + path: | |
| 92 | + gh-pages |
| 93 | +
|
| 94 | + publish-progress: |
| 95 | + name: Publish progress |
| 96 | + runs-on: ubuntu-24.04 |
| 97 | + needs: [build-gba] |
| 98 | + # Only able to run from repo pull requests (by maintainers, or on the main branch via push) |
| 99 | + if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} |
| 100 | + permissions: |
| 101 | + contents: write |
| 102 | + steps: |
| 103 | + - name: Checkout gh-pages |
| 104 | + uses: actions/checkout@master |
| 105 | + with: |
| 106 | + path: gh-pages |
| 107 | + ref: gh-pages |
| 108 | + - name: Download progress |
| 109 | + uses: actions/download-artifact@v7 |
| 110 | + with: |
| 111 | + path: | |
| 112 | + gh-pages |
| 113 | + - run: | |
| 114 | + cd gh-pages |
| 115 | + git status |
| 116 | + - name: Publish reports |
93 | 117 | if: ${{ github.event_name == 'push' }} |
94 | 118 | uses: EndBug/add-and-commit@v7 |
95 | 119 | with: |
|
0 commit comments