Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Apr 17, 2024
1 parent 68294b7 commit bf0153f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/firefox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
run: choco install -y mozillabuild

- name: Bootstrap Firefox
env:
NAME: ${{ runner.os == 'Mac' && 'Nightly' || 'bin' }}
TYPE: ${{ runner.os == 'Mac' && matrix.type == 'debug' && 'Debug' || '' }}
EXT: ${{ runner.os == 'Mac' && '.app' || '' }}
run: |
cd mozilla-unified
{
Expand Down Expand Up @@ -97,14 +101,22 @@ jobs:
./mach vendor rust --ignore-modified
- name: Build Firefox
env:
NAME: ${{ runner.os == 'Mac' && 'Nightly' || 'bin' }}
TYPE: ${{ runner.os == 'Mac' && matrix.type == 'debug' && 'Debug' || '' }}
EXT: ${{ runner.os == 'Mac' && '.app' || '' }}
run: |
cd mozilla-unified
./mach build
find "../$FIREFOX/dist" -ls
ls -l "../$FIREFOX/dist"
BINARY="$NAME$TYPE$EXT"
echo "BINARY=$BINARY" >> "$GITHUB_ENV"
tar -cf "../$FIREFOX/$BINARY.tar" -C "../$FIREFOX/dist" "$BINARY"
- name: Export binary
uses: actions/upload-artifact@v4
with:
name: ${{ env.FIREFOX }}-${{ matrix.os }}-${{ matrix.type }}
path: ${{ env.FIREFOX }}/dist
name: ${{ runner.os }}-${{ env.FIREFOX }}-${{ matrix.type }}
path: ${{ env.FIREFOX }}/dist/*.tar
compression-level: 9

0 comments on commit bf0153f

Please sign in to comment.