Skip to content

Commit

Permalink
try macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahihi committed Aug 1, 2024
1 parent 6ce8721 commit 3f378d0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build (Linux)
name: build Linux

on:
push:
Expand All @@ -13,17 +13,17 @@ jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME_UNDERSCORE: autocrap
PROJECT_NAME: autocrap
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libasound2-dev
version: 1.0
- name: Build
- name: build
run: cargo build --verbose
- name: 'Upload Artifact'
- name: upload
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME_UNDERSCORE }}
path: target/debug/${{ env.PROJECT_NAME_UNDERSCORE }}
name: ${{ env.PROJECT_NAME }}
path: target/debug/${{ env.PROJECT_NAME }}
27 changes: 27 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build macOS

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: macOS-10.14
env:
PROJECT_NAME: autocrap
steps:
- uses: actions/checkout@v4
- name: build
run: cargo build --verbose
- name: zip
run: zip -r ${{ env.PROJECT_NAME }} target/debug/${{ env.PROJECT_NAME }}
- name: upload
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}-macos.zip
path: ${{ env.PROJECT_NAME }}.zip

0 comments on commit 3f378d0

Please sign in to comment.