Skip to content

Commit

Permalink
Build test on linux, macos and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rygx committed Jan 25, 2024
1 parent 8942f2e commit dc9b8b5
Showing 1 changed file with 46 additions and 3 deletions.
49 changes: 46 additions & 3 deletions .github/workflows/actions-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build checks
run-name: ${{ github.actor }} Build test
on: [push]
jobs:
Build-Test:
Build-Test-Linux:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
Expand All @@ -18,8 +18,51 @@ jobs:
- name: Mount bazel cache # Optional
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel
path: "~/.cache/bazel_debian"
key: bazel_debian
- run: bazel build //...
- run: bazel test //...
- run: echo "This job's status is ${{ job.status }}."
Build-Test-MacOs:
runs-on: macos-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server."
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Mount bazel cache # Optional
uses: actions/cache@v3
with:
path: "~/.cache/bazel_macos"
key: bazel_macos
- run: bazel build //...
- run: bazel test //...
- run: echo "This job's status is ${{ job.status }}."
Build-Test-Windows:
runs-on: windows-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server."
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Mount bazel cache # Optional
uses: actions/cache@v3
with:
path: "~/.cache/bazel_win"
key: bazel_win
- run: bazel build //...
- run: bazel test //...
- run: echo "This job's status is ${{ job.status }}."

0 comments on commit dc9b8b5

Please sign in to comment.