Skip to content

Commit

Permalink
remove mac os 12 and add mac os 15 to release
Browse files Browse the repository at this point in the history
  • Loading branch information
gschoeni committed Nov 25, 2024
1 parent dc92eec commit eff47c4
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ jobs:
asset_name: oxen-server-mac-13.0.tar.gz
tag: ${{ github.ref }}

release_mac_12:
runs-on: macos-12
release_mac_14:
runs-on: macos-14

steps:
- name: Checkout
Expand All @@ -446,9 +446,6 @@ jobs:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV

- name: Install dependencies
run: brew install pkg-config ffmpeg

- name: Install latest rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand All @@ -459,31 +456,31 @@ jobs:
run: cargo build --release

- name: Tar.gz oxen for mac
run: cd target/release && tar -czf oxen-mac-12.0.tar.gz oxen && cd -
run: cd target/release && tar -czf oxen-mac-14.0.tar.gz oxen && cd -

- name: Tar.gz oxen-server for mac
run: cd target/release && tar -czf oxen-server-mac-12.0.tar.gz oxen-server && cd -
run: cd target/release && tar -czf oxen-server-mac-14.0.tar.gz oxen-server && cd -

- name: Upload oxen to release
uses: svenstaro/upload-release-action@v2
with:
release_name: "🐂 Release ${{ github.ref }}"
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/oxen-mac-12.0.tar.gz
asset_name: oxen-mac-12.0.tar.gz
file: target/release/oxen-mac-14.0.tar.gz
asset_name: oxen-mac-14.0.tar.gz
tag: ${{ github.ref }}

- name: Upload oxen-server to release
uses: svenstaro/upload-release-action@v2
with:
release_name: "🐂 Release ${{ github.ref }}"
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/oxen-server-mac-12.0.tar.gz
asset_name: oxen-server-mac-12.0.tar.gz
file: target/release/oxen-server-mac-14.0.tar.gz
asset_name: oxen-server-mac-14.0.tar.gz
tag: ${{ github.ref }}

release_mac_14:
runs-on: macos-14
release_mac_15:
runs-on: macos-15

steps:
- name: Checkout
Expand All @@ -492,9 +489,6 @@ jobs:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV

- name: Install dependencies
run: brew install pkg-config

- name: Install latest rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand All @@ -505,27 +499,27 @@ jobs:
run: cargo build --release

- name: Tar.gz oxen for mac
run: cd target/release && tar -czf oxen-mac-14.0.tar.gz oxen && cd -
run: cd target/release && tar -czf oxen-mac-15.0.tar.gz oxen && cd -

- name: Tar.gz oxen-server for mac
run: cd target/release && tar -czf oxen-server-mac-14.0.tar.gz oxen-server && cd -
run: cd target/release && tar -czf oxen-server-mac-15.0.tar.gz oxen-server && cd -

- name: Upload oxen to release
uses: svenstaro/upload-release-action@v2
with:
release_name: "🐂 Release ${{ github.ref }}"
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/oxen-mac-14.0.tar.gz
asset_name: oxen-mac-14.0.tar.gz
file: target/release/oxen-mac-15.0.tar.gz
asset_name: oxen-mac-15.0.tar.gz
tag: ${{ github.ref }}

- name: Upload oxen-server to release
uses: svenstaro/upload-release-action@v2
with:
release_name: "🐂 Release ${{ github.ref }}"
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/oxen-server-mac-14.0.tar.gz
asset_name: oxen-server-mac-14.0.tar.gz
file: target/release/oxen-server-mac-15.0.tar.gz
asset_name: oxen-server-mac-15.0.tar.gz
tag: ${{ github.ref }}

stop-self-hosted-runner:
Expand Down

0 comments on commit eff47c4

Please sign in to comment.