Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann committed Dec 21, 2023
1 parent b5ecc08 commit 29b461f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Create Release

on:
push:
workflow_dispatch:
- push
- workflow_dispatch

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -11,24 +11,24 @@ jobs:
create_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v4
- name: Create Release
run: |
set -x
TAG="${GITHUB_REF##*/}-${GITHUB_SHA:0:7}"
gh release create "$TAG" --draft --title "Draft Release"
build:
needs: create_release
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -37,7 +37,8 @@ jobs:
run: |
curl -fsSL https://apt.llvm.org/llvm.sh | sudo bash -s -- 14
sudo apt install -y --no-install-recommends clang-14 libc++-14-dev libc++abi-14-dev
CC=clang-14 CXX=clang++-14 ./prepare-toolchain && mv packages/darwin-tools.tar.gz packages/darwin-tools-${{ matrix.os }}.tar.gz
CC=clang-14 CXX=clang++-14 ./prepare-toolchain
mv packages/darwin-tools.tar.gz packages/darwin-tools-${{ matrix.os }}.tar.gz
- name: Attach Build To Release
run: |
Expand Down

0 comments on commit 29b461f

Please # to comment.