Skip to content

Commit

Permalink
let's see if this gives the proper version numbers (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alcaro committed Jan 28, 2025
1 parent 76c5e02 commit 3686f34
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/build-optimized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,31 @@ jobs:
container: ghcr.io/pyca/cryptography-manylinux_2_28:x86_64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:none
- name: Dependencies
run: dnf install -y gtk3-devel zip
- name: Workaround for https://github.com/actions/runner/issues/2033
run: chown -R $(id -u):$(id -g) $PWD
- name: Build
run: ./make-linux.sh
- name: Upload Artifacts
uses: actions/[email protected]
with:
name: linux-x64-gui.zip
path: ./flips
- name: Find Flips version
id: flips_version
run: echo version=$(git rev-list --count master) >> $GITHUB_OUTPUT

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:none
- name: Build
run: bash ./make-windows.sh
- name: Upload Artifacts
Expand All @@ -38,6 +49,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:none
- name: Dependencies
run: brew install gtk+3 libomp llvm
- name: Build
Expand All @@ -53,21 +67,18 @@ jobs:
runs-on: ubuntu-latest
needs: [linux, windows, macos]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download binaries
uses: actions/download-artifact@v4
with:
path: builds/
- name: Find Flips version
id: flips_version
run: echo version=$(git rev-list --count master) >> $GITHUB_OUTPUT
- name: Create zips
run: |
zip -9 ./flips-linux.zip ./builds/linux-x64-gui.zip/flips COPYING COPYING.gpl3
zip -9 ./flips-windows.zip ./builds/windows-x64-gui.zip/flips.exe COPYING COPYING.gpl3
#zip -9 ./flips-macos.zip ./builds/macos-m1-gui.zip/flips COPYING COPYING.gpl3
mv builds/linux-x64-gui.zip/flips flips
zip -9 ./flips-linux.zip .flips COPYING COPYING.gpl3
mv builds/windows-x64-gui.zip/flips.exe flips.exe
zip -9 ./flips-windows.zip flips.exe COPYING COPYING.gpl3
#mv builds/macos-m1-gui.zip/flips flips-mac
#zip -9 ./flips-macos.zip flips-mac COPYING COPYING.gpl3
- name: Upload GitHub Release
uses: svenstaro/[email protected]
with:
Expand Down
1 change: 0 additions & 1 deletion make-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ FLAGS=$FLAGS' -ffunction-sections -fdata-sections -Wl,--gc-sections -fprofile-di
MAKE="${MAKE:-make}"
WINE="${WINE:-}"


rm floating.zip
rm -r obj/* || true

Expand Down

0 comments on commit 3686f34

Please sign in to comment.