Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for GOSH and Acki-Nacki #2

Merged
merged 18 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.{yaml,yml}]
indent_size = 2
87 changes: 87 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Release

on:
push:
branches:
- ci
tags:
- "gosh_[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:

permissions:
contents: write

jobs:
build_linux:
name: Build ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-gnu

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- run: |
sudo apt update
sudo apt install -y build-essential libboost-all-dev

- run: |
cargo build -r --target ${{ matrix.target }}
./target/${{ matrix.target }}/release/sold --version
cd target/${{ matrix.target }}/release
tar czvf sold-${{ matrix.target }}.tar.gz sold

- name: Publish
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
target/${{ matrix.target }}/release/sold-${{ matrix.target }}.tar.gz
tag_name: ${{ github.ref_name }}-${{ github.run_number }}

build_mac:
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.image }}
strategy:
matrix:
target:
- x86_64-apple-darwin
- aarch64-apple-darwin
include:
- target: x86_64-apple-darwin
image: macos-13
- target: aarch64-apple-darwin
image: macos-14

steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}

- run: |
brew install boost

- run: |
cargo build -r --target ${{ matrix.target }}
./target/${{ matrix.target }}/release/sold --version
cd target/${{ matrix.target }}/release
tar czvf sold-${{ matrix.target }}.tar.gz sold

- name: Publish
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
target/${{ matrix.target }}/release/sold-${{ matrix.target }}.tar.gz
tag_name: ${{ github.ref_name }}-${{ github.run_number }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ build/
sold/target/
target/
.idea/
compiler/cmake-build-debug/

Loading