CI: fix and fmt
install alsa lib on linux platform
This commit is contained in:
parent
1b9607be3f
commit
a8427dcb4b
4 changed files with 27 additions and 28 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
|
@ -18,11 +18,11 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
- name: Setup Zig
|
||||
run: |
|
||||
sudo apt install xz-utils
|
||||
sudo apt install xz-utils libasound2-dev
|
||||
sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.10.0-dev.3027+0e26c6149.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
||||
- name: x86_64-linux -> x86_64-linux-musl
|
||||
if: matrix.project == 'freetype' || matrix.project == 'glfw'
|
||||
run: cd ${{ matrix.project }} && zig build -Dtarget=x86_64-linux-mul
|
||||
run: cd ${{ matrix.project }} && zig build -Dtarget=x86_64-linux-musl
|
||||
- name: x86_64-linux -> x86_64-macos
|
||||
run: cd ${{ matrix.project }} && zig build -Dtarget=x86_64-macos.12-none
|
||||
env:
|
||||
|
|
@ -63,10 +63,10 @@ jobs:
|
|||
- name: Setup Zig
|
||||
run: |
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
Invoke-WebRequest -Uri "https://ziglang.org/builds/zig-windows-x86_64-0.10.0-dev.3027+0e26c6149.zip" -OutFile "C:\zig.zip"
|
||||
Invoke-WebRequest -Uri 'https://ziglang.org/builds/zig-windows-x86_64-0.10.0-dev.3027+0e26c6149.zip' -OutFile 'C:\zig.zip'
|
||||
cd C:\
|
||||
7z x zig.zip
|
||||
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.10.0-dev.3027+0e26c6149\"
|
||||
Add-Content $env:GITHUB_PATH 'C:\zig-windows-x86_64-0.10.0-dev.3027+0e26c6149\'
|
||||
- name: compile all examples
|
||||
if: matrix.project == '.'
|
||||
run: cd ${{ matrix.project }} && zig build compile-all
|
||||
|
|
@ -92,4 +92,3 @@ jobs:
|
|||
run: cd ${{ matrix.project }} && zig build test
|
||||
env:
|
||||
AGREE: true
|
||||
|
||||
|
|
|
|||
2
.github/workflows/m1_ci.yml
vendored
2
.github/workflows/m1_ci.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
runs-on: [self-hosted, macOS, ARM64]
|
||||
strategy:
|
||||
matrix:
|
||||
project: ['.', 'glfw', 'freetype']
|
||||
project: [".", "glfw", "freetype"]
|
||||
defaults:
|
||||
run:
|
||||
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
|
||||
|
|
|
|||
4
.github/workflows/push_subrepos.yml
vendored
4
.github/workflows/push_subrepos.yml
vendored
|
|
@ -2,7 +2,7 @@ name: Push to subrepositories
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- "main"
|
||||
jobs:
|
||||
push:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
# fetch full Git history, otherwise push-subrepos.sh would fail due to not being able to
|
||||
# split the git subtree.
|
||||
fetch-depth: 0
|
||||
- name: 'Push recent commits to subrepositories'
|
||||
- name: "Push recent commits to subrepositories"
|
||||
env:
|
||||
ACCESS_TOKEN: ${{ secrets.HEXOPS_MACH_PUSH_SUBREPOS }}
|
||||
run: |
|
||||
|
|
|
|||
2
glfw/.github/workflows/ci.yml
vendored
2
glfw/.github/workflows/ci.yml
vendored
|
|
@ -65,7 +65,7 @@ jobs:
|
|||
- name: test
|
||||
run: zig build test
|
||||
x86_64-macos:
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-12
|
||||
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push
|
||||
# to the branch.
|
||||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue