Skip to content

Commit

Permalink
Add an initial GitHub Actions workflow for Continuous Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
chosungmann committed Oct 20, 2024
1 parent 50b3907 commit 9b6b7ea
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/continuous_integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Continuous Integration
on: [pull_request, push]
jobs:
build:
name: Build
runs-on: ${{matrix.runs-on}}
strategy:
matrix:
target: [
aarch64-apple-darwin,
aarch64-apple-ios,
aarch64-linux-android,
x86_64-apple-darwin,
x86_64-apple-ios,
x86_64-linux-android,
x86_64-pc-windows-msvc,
x86_64-unknown-linux-gnu,
]
include:
- target: aarch64-apple-darwin
runs-on: macos-14
- target: aarch64-apple-ios
runs-on: macos-14
- target: aarch64-linux-android
runs-on: macos-12
- target: x86_64-apple-darwin
runs-on: macos-14
- target: x86_64-apple-ios
runs-on: macos-14
- target: x86_64-linux-android
runs-on: macos-12
- target: x86_64-pc-windows-msvc
runs-on: windows-2022
- target: x86_64-unknown-linux-gnu
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Generate .cargo/config.toml
env:
CARGO_CONFIG_TOML: ${{secrets.CARGO_CONFIG_TOML}}
run: |
mkdir .cargo
echo "${CARGO_CONFIG_TOML}" >> .cargo/config.toml
- name: Build breakpad.rs
run: cargo build --target=${{matrix.target}}
12 changes: 12 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[toolchain]
channel = "stable"
targets = [
"aarch64-apple-darwin",
"aarch64-apple-ios",
"aarch64-linux-android",
"x86_64-apple-darwin",
"x86_64-apple-ios",
"x86_64-linux-android",
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu",
]

0 comments on commit 9b6b7ea

Please sign in to comment.