Skip to content

Commit

Permalink
ci(release): split release and tarball step and update os
Browse files Browse the repository at this point in the history
  • Loading branch information
giusdp committed Mar 8, 2024
1 parent 2c1aabc commit fdb2c1f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
os: [ubuntu-22.04, windows-2022, macos-14]
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
rust-target: x86_64-unknown-linux-gnu
release-tarball: core-x86_64-linux.tar.gz
release-name: core
- os: windows-2019
- os: windows-2022
rust-target: x86_64-pc-windows-gnu
release-tarball: core-x86_64-windows.tar.gz
release-name: core
- os: macos-11
- os: macos-14
rust-target: x86_64-apple-darwin
release-tarball: core-x86_64-macos.tar.gz
release-name: core
Expand Down Expand Up @@ -94,12 +94,15 @@ jobs:
mix compile
- name: Create Mix Release
shell: bash
run: mix release

- name: Create Tarball
working-directory: core/_build/${{ env.MIX_ENV }}/rel/${{ matrix.release-name }}
shell: bash
run: |
mix release
cd _build/${{ env.MIX_ENV }}/rel/${{ matrix.release-name }}
tar -czvf ${{ matrix.release-tarball }} bin erts-* lib releases
mv ${{ matrix.release-tarball }} ../../../../
mv ${{ matrix.release-tarball }} core/
- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/release-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
os: [ubuntu-22.04, windows-2022, macos-14]
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
rust-target: x86_64-unknown-linux-gnu
release-tarball: worker-x86_64-linux.tar.gz
release-name: worker
- os: windows-2019
- os: windows-2022
rust-target: x86_64-pc-windows-gnu
release-tarball: worker-x86_64-windows.tar.gz
release-name: worker
- os: macos-11
- os: macos-14
rust-target: x86_64-apple-darwin
release-tarball: worker-x86_64-macos.tar.gz
release-name: worker
Expand Down Expand Up @@ -94,12 +94,15 @@ jobs:
mix compile
- name: Create Mix Release
shell: bash
run: mix release

- name: Create Tarball
working-directory: worker/_build/${{ env.MIX_ENV }}/rel/${{ matrix.release-name }}
shell: bash
run: |
mix release
cd _build/${{ env.MIX_ENV }}/rel/${{ matrix.release-name }}
tar -czvf ${{ matrix.release-tarball }} bin erts-* lib releases
mv ${{ matrix.release-tarball }} ../../../../
mv ${{ matrix.release-tarball }} worker/
- name: Upload artifact
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit fdb2c1f

Please sign in to comment.