Skip to content

Commit 5dbe9ee

Browse files
committed
Initial setup of homebrew tap
0 parents  commit 5dbe9ee

File tree

4 files changed

+123
-0
lines changed

4 files changed

+123
-0
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: brew pr-pull
2+
on:
3+
pull_request_target:
4+
types:
5+
- labeled
6+
jobs:
7+
pr-pull:
8+
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Set up Homebrew
12+
uses: Homebrew/actions/setup-homebrew@master
13+
14+
- name: Set up git
15+
uses: Homebrew/actions/git-user-config@master
16+
17+
- name: Pull bottles
18+
env:
19+
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
20+
PULL_REQUEST: ${{ github.event.pull_request.number }}
21+
run: brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST
22+
23+
- name: Push commits
24+
uses: Homebrew/actions/git-try-push@master
25+
with:
26+
token: ${{ github.token }}
27+
branch: main
28+
29+
- name: Delete branch
30+
if: github.event.pull_request.head.repo.fork == false
31+
env:
32+
BRANCH: ${{ github.event.pull_request.head.ref }}
33+
run: git push --delete origin $BRANCH

.github/workflows/tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: brew test-bot
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test-bot:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
os: [macos-11, macos-10.15]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Set up Homebrew
16+
id: set-up-homebrew
17+
uses: Homebrew/actions/setup-homebrew@master
18+
19+
- name: Cache Homebrew Bundler RubyGems
20+
id: cache
21+
uses: actions/cache@v1
22+
with:
23+
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
24+
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
25+
restore-keys: ${{ runner.os }}-rubygems-
26+
27+
- name: Install Homebrew Bundler RubyGems
28+
if: steps.cache.outputs.cache-hit != 'true'
29+
run: brew install-bundler-gems
30+
31+
- run: brew test-bot --only-cleanup-before
32+
33+
- run: brew test-bot --only-setup
34+
35+
- run: brew test-bot --only-tap-syntax
36+
37+
- run: brew test-bot --only-formulae
38+
if: github.event_name == 'pull_request'
39+
40+
- name: Upload bottles as artifact
41+
if: always() && github.event_name == 'pull_request'
42+
uses: actions/upload-artifact@main
43+
with:
44+
name: bottles
45+
path: '*.bottle.*'

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BSD 2-Clause License
2+
3+
Copyright (c) 2022, Fortran-lang contributors
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Brew formulas for Fortran
2+
3+
This repository provides package build instructions for tools and libraries around Fortran compatible with the [Homebrew toolchain](https://brew.sh).
4+
5+
For example you can install *fpm* by tapping this repository
6+
7+
```
8+
brew tap homebrew-fpm/fortran
9+
brew install fpm
10+
```
11+
12+
Available packages from this tap are
13+
14+
- [`fpm`](https://fpm.fortran-lang.org): Fortran package manager
15+
- [`lfortran`](https://lfortran.org): Modern interactive LLVM-based Fortran compiler
16+
17+
18+
## License
19+
20+
The package build files are available under a BSD-2-Clause license.

0 commit comments

Comments
 (0)