github.com/icexin/eggos@v0.4.2-0.20220216025428-78b167e4f349/.github/workflows/ci.yaml (about)

     1  on: 
     2    push:
     3      branches:
     4        - main
     5    pull_request:
     6  
     7  name: CI
     8  jobs:
     9    ubuntu-latest:
    10      runs-on: ubuntu-latest
    11      steps:
    12      - name: Install Go
    13        uses: actions/setup-go@v2
    14        with:
    15          go-version: 1.16.x
    16  
    17      - name: Install Mage
    18        run: |
    19          go get github.com/magefile/mage
    20  
    21      - name: Install Qemu
    22        run: |
    23          sudo apt-get update && sudo apt-get install -y qemu-system-x86
    24  
    25      - name: Checkout code
    26        uses: actions/checkout@v2
    27  
    28      - name: Build
    29        run: |
    30          diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go')) 
    31          mage -v multiboot
    32          mage -v iso
    33          mage -v test
    34  
    35    macos-latest:
    36      runs-on: macos-latest
    37      steps:
    38      - name: Install Go
    39        uses: actions/setup-go@v2
    40        with:
    41          go-version: 1.16.x
    42  
    43      - name: Install Mage
    44        run: |
    45          go get github.com/magefile/mage
    46  
    47      - name: Install Elf Gcc
    48        run: |
    49          brew install x86_64-elf-gcc
    50  
    51      - name: Checkout code
    52        uses: actions/checkout@v2
    53  
    54      - name: Build
    55        run: |
    56          diff -u <(echo -n) <(gofmt -d $(find . -type f -name '*.go')) 
    57          mage -v multiboot
    58          mage -v kernel