Skip to content

Commit

Permalink
ci: add daily Linux and macOS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Aug 30, 2023
1 parent b0a6456 commit 246cb27
Showing 1 changed file with 50 additions and 5 deletions.
55 changes: 50 additions & 5 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:

permissions: {}

env:
CW_MAP: '1'
CW_JOBS: '3'
DO_NOT_TRACK: '1'

jobs:
win:
runs-on: ubuntu-latest
Expand All @@ -19,15 +24,12 @@ jobs:
fetch-depth: 8
- name: 'build'
env:
CW_CONFIG: 'dev-win'
CW_LLVM_MINGW_DL: '1'
CW_LLVM_MINGW_ONLY: '0'
CW_MAP: '1'
CW_JOBS: '3'
DO_NOT_TRACK: '1'
run: |
. ./_versions.sh
export CW_CONFIG='dev-win'
export CW_REVISION="$(TZ=UTC date +'%Y%m%d')"
. ./_versions.sh
time docker pull "${DOCKER_IMAGE}"
docker images --digests
time docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" \
Expand All @@ -46,3 +48,46 @@ jobs:
path: |
*-*-mingw*.*
urls.txt
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'build'
run: |
export CW_CONFIG='dev-linux'
export CW_REVISION="$(TZ=UTC date +'%Y%m%d')"
. ./_versions.sh
time docker pull "${DOCKER_IMAGE}"
docker images --digests
time docker run --volume "$(pwd):$(pwd)" --workdir "$(pwd)" \
--env-file <(env | grep -a -E \
'^(CW_|GITHUB_|DO_NOT_TRACK)') \
"${DOCKER_IMAGE}" \
sh -c ./_ci-linux-debian.sh
- uses: actions/upload-artifact@v3
with:
name: 'Linux binaries'
retention-days: 5
path: |
*-*-linux*.*
urls.txt
mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: 'build'
run: |
export CW_CONFIG='dev-mac-macuni'
export CW_REVISION="$(TZ=UTC date +'%Y%m%d')"
sh -c ./_ci-mac-homebrew.sh
- uses: actions/upload-artifact@v3
with:
name: 'macOS universal binaries'
retention-days: 5
path: |
*-*-macos*.*
urls.txt

0 comments on commit 246cb27

Please sign in to comment.