Add initial specification for Big Endian #820
Workflow file for this run
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| release: | |
| types: | |
| - created | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install packages | |
| run: sudo apt-get update && sudo apt-get install -y make ruby | |
| - name: Install gems | |
| run: sudo gem install asciidoctor asciidoctor-pdf | |
| - name: Build | |
| run: make HTML=1 | |
| - name: Make GitHub pages directory | |
| run: | | |
| mkdir github-pages | |
| cp riscv-abi.html github-pages/index.html | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: riscv-abi.pdf | |
| path: riscv-abi.pdf | |
| - name: Upload pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: github-pages | |
| draft-release: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: riscv-abi.pdf | |
| path: ./ | |
| - name: Get current date | |
| id: date | |
| run: echo "::set-output name=date::$(date -u +'%Y%m%d')" | |
| - name: Create release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: draft-${{ steps.date.outputs.date }}-${{ github.sha }} | |
| release_name: Draft release ${{ steps.date.outputs.date }} | |
| body: Latest snapshot (${{ github.sha }}) | |
| prerelease: true | |
| - name: Upload release asset | |
| id: upload-release-asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: riscv-abi.pdf | |
| asset_name: riscv-abi.pdf | |
| asset_content_type: application/pdf | |
| release: | |
| if: github.event_name == 'release' && github.event.action == 'created' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: riscv-abi.pdf | |
| path: ./ | |
| - name: Upload release asset | |
| id: upload-release-asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: riscv-abi.pdf | |
| asset_name: riscv-abi.pdf | |
| asset_content_type: application/pdf | |
| deploy: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |