Rename mac to mac-arm64, adjust for Silicon build, remove sccache cod… #1
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: Mac-arm64 | |
| on: | |
| # Manual run | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| default: "140" | |
| required: true | |
| type: choice | |
| options: ["140"] | |
| # Run on tag push | |
| push: | |
| tags: '[0-9][0-9][0-9].*-automation' | |
| env: | |
| VERSION: "${{ inputs.version && inputs.version || github.ref_name }}" | |
| jobs: | |
| build: | |
| runs-on: macos-14-arm64 # Apple Silicon runner | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Get version to be made | |
| run: | | |
| var=${{ env.VERSION }} | |
| echo "VER=${var::3}" >> $GITHUB_ENV | |
| - name: init env | |
| run: | | |
| source ${{ env.VER }}/${{ env.VER }}.sh | |
| rustup override set $RUST_VER | |
| brew install gnu-sed mercurial | |
| - name: build | |
| working-directory: ".." | |
| run: | | |
| cp thunderbird-patches/build/build.sh . | |
| export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" | |
| echo "Y" | ./build.sh ${{ env.VER }} | |
| - name: Upload a Build Artifact | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: mac-${{ env.VER }} | |
| path: "/Users/runner/work/thunderbird-patches/mozilla-esr${{ env.VER }}/obj-aarch64-apple-darwin/dist/*.mac.dmg" |